/* SWOTT Login Page Styles */

/* Utility bar */
.swott-login-utility-bar {
  background-color: #1C7048;
  padding: 5px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.swott-login-utility-bar__name {
  color: rgba(255, 255, 255, 0.9);
}

body.login {
  background-color: #0d4932;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-top: 32px;
}

/* Replace WP logo with UOS logo */
body.login h1 a {
  background-image: url('../img/logo/UOSLogo_Primary_White_RGB.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 200px;
  height: 70px;
}

/* Login form card */
body.login #login {
  padding: 0;
  width: 360px;
}

body.login #loginform,
body.login #lostpasswordform,
body.login #registerform {
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 2rem 2rem 1.5rem;
}

/* Labels */
body.login label {
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

/* Inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  box-shadow: none;
  height: auto;
  line-height: 1.5;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
  border-color: #12472E;
  box-shadow: 0 0 0 2px rgba(18, 71, 46, 0.15);
  outline: none;
}

/* Submit button */
body.login .button-primary,
body.login input[type="submit"] {
  background: #2ecc71;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  width: 100%;
  height: auto;
  line-height: 1.5;
  text-shadow: none;
  box-shadow: none;
  transition: background-color 0.2s;
}

body.login .button-primary:hover,
body.login input[type="submit"]:hover {
  background: #27ae60;
  border: none;
  color: #fff;
}

/* Hide remember me & nav links */
body.login .forgetmenot {
  display: none;
}

body.login #nav,
body.login #backtoblog {
  text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
  color: #fff;
}

/* Language switcher */
body.login .language-switcher {
  display: none;
}

/* Error/success messages */
body.login #login_error,
body.login .message {
  border-radius: 4px;
  border-left: none;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

body.login #login_error {
  background: #fdecea;
  color: #c0392b;
}

body.login .message {
  background: #eafaf1;
  color: #27ae60;
}
