/* Login screen (index.php).
   Loaded AFTER Assets/css/ums-ui.css on this page only — see the comment in
   index.php. This is the one page with its own full-page layout, so it owns
   `body` here; the shared design layer owns everything else.
   Colours are the same tokens as ums-ui.css so the login screen and the app
   read as one product. */

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background-color: #1b2b3a;
  background-image: linear-gradient(rgba(20, 32, 43, .62), rgba(20, 32, 43, .78)),
                    url("../../Assets/img/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-container {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  /* Was a fixed 400x500 box, which left a large empty band under the button.
     Sized to its content instead. */
  padding: 34px 34px 30px;
  width: 380px;
  height: auto;
  box-shadow: 0 10px 30px rgba(10, 18, 26, .35), 0 2px 6px rgba(10, 18, 26, .2);
}

.login-container img {
  border-radius: 8px;
  display: block;
  margin: 0 auto 14px;
  width: 34%;
}

.login-container h2 {
  margin: 0 0 4px 0;
  color: #24384a;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

/* Unit line under the regiment name, from the <title> the page already sets. */
.login-container h2::after {
  content: "Unit Management System";
  display: block;
  margin-top: 5px;
  color: #8a99a8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.login-container .form-group { margin-bottom: 0; text-align: left; }

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 9px 12px;
  margin: 9px 0 0;
  border: 1px solid #cfd7e0;
  border-radius: 5px;
  color: #24313d;
  font-size: 14px;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
  outline: none;
  border-color: #3a5f7d;
  box-shadow: 0 0 0 3px rgba(58, 95, 125, .18);
}

.login-container input::placeholder { color: #a9b6c2; }

.login-container button {
  width: 100%;
  height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  border: none;
  border-radius: 5px;
  background-color: #2c4a63;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .12s ease, box-shadow .12s ease;
}

.login-container button:hover { background-color: #24384a; }
.login-container button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 95, 125, .35);
}
.login-container button:active { background-color: #1b2b3a; }
