
:root {
  --primary: #00204f;
  --primary-2: #b8860b;
  --accent: #00cec9;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #2d3436;
  --muted: #8392a5;
  --border: #eceff5;
  --glass-bg: rgba(0, 32, 79, 0.90);
  --glass-border: rgba(255, 255, 255, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      135deg,
      rgba(0, 32, 79, 0.35),
      rgba(2, 11, 34, 0.30)
    ),
    url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "DM Sans", sans-serif;
  color: #ffffff;
}

h1,
h2,
button {
  font-family: "Sora", sans-serif;
}

/* =====================================
   COMMON AUTH CONTAINER
===================================== */

.auth-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* =====================================
   COMMON GLASS CARD
===================================== */

.glass {
  width: 100%;
  max-width: 440px;
  padding: 1.4rem 2rem;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: linear-gradient(
    145deg,
    rgba(0, 32, 79, 0.90),
    rgba(12, 58, 92, 0.84)
  );
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: rise 0.7s ease both;
}

/* ANIMATION */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================
   LOGO
===================================== */

.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}

.login-logo img {
  width: 125px;
  height: 70px;
  object-fit: contain;
  display: block;
}

/* =====================================
   COMMON HEADING
===================================== */

.glass h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}
.glass p{
  font-size: 14px !important;

}

.subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.heading-line {
  width: 48px;
  height: 4px;
  margin: 9px auto 12px;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    var(--primary-2),
    #f1d26a
  );
}

/* =====================================
   COMMON FORM LABELS
===================================== */

.form-label {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
}

/* =====================================
   COMMON INPUT FIELDS
===================================== */

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.94rem;
  transition: all 0.25s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.form-control:hover {
  border-color: var(--primary-2);
  background: rgba(255, 255, 255, 0.13);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.20);
  outline: none;
}

/* =====================================
   PASSWORD FIELD
===================================== */

.password-wrapper {
  position: relative;
}

.password-wrapper .form-control {
  padding-right: 48px;
}

/* PASSWORD VISIBILITY BUTTON */

.eye {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.2s;
}

.eye:hover {
  color: #f1d26a;
  background: rgba(255, 255, 255, 0.10);
}

/* =====================================
   FORGOT PASSWORD LINK
===================================== */

.forgot {
  color: #f1d26a;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.forgot:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* FOCUS ACCESSIBILITY */

.eye:focus-visible,
.forgot:focus-visible {
  outline: 2px solid #f1d26a;
  outline-offset: 3px;
}

/* =====================================
   COMMON BUTTON
===================================== */

.btn-primary {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(
    120deg,
    var(--primary-2),
    #d4af37
  );
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.22);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(
    120deg,
    #956900,
    #b8860b
  );
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(184, 134, 11, 0.30);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.25);
}

/* =====================================
   LOGIN PAGE
===================================== */

#loginForm .mb-3 {
  margin-bottom: 0.75rem !important;
}

#loginForm #formMessage {
  color: rgba(255, 255, 255, 0.80);
}

/* =====================================
   FORGOT PASSWORD PAGE
===================================== */

#fwpForm .mb-3 {
  margin-bottom: 0.85rem !important;
}

#fwpForm .glass h2 {
  margin-bottom: 1.2rem !important;
}

/* OTP INPUT */

.otp-input {
  padding-right: 115px;
}

/* SEND OTP BUTTON */

.send-otp-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(
    120deg,
    var(--primary-2),
    #d4af37
  );
  color: #ffffff;
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-otp-btn:hover {
  background: linear-gradient(
    120deg,
    #956900,
    #b8860b
  );
  color: #ffffff;
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 5px 12px rgba(184, 134, 11, 0.3);
}

.send-otp-btn:disabled {
  background: linear-gradient(
    120deg,
    #64748b,
    #94a3b8
  );
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: translateY(-50%);
}

/* FORGOT PASSWORD MESSAGE */

#fwpForm #formMessage {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* =====================================
   CREATE NEW PASSWORD PAGE
===================================== */

#newpwdForm .mb-3 {
  margin-bottom: 0.85rem !important;
}

#newpwdForm .glass h2 {
  margin-bottom: 1.2rem !important;
}

/* PASSWORD INPUT WRAPPER */

#newpwdForm .password-wrapper {
  position: relative;
}

#newpwdForm .password-wrapper .form-control {
  padding-right: 48px;
}

/* NEW PASSWORD MESSAGE */

#newpwdForm #formMessage {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
}

/* BUTTON SPINNER */

#newpwdForm .spinner-border {
  color: #ffffff;
}

/* =====================================
   AUTOFILL COLOR FIX
===================================== */

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
  box-shadow: 0 0 0 1000px #12365b inset;
  border: 1px solid rgba(255, 255, 255, 0.30);
}

/* =====================================
   TABLET AND MOBILE
===================================== */

@media (max-width: 576px) {
  .auth-container {
    padding: 18px;
  }

  .glass {
    max-width: 420px;
    padding: 1.3rem 1.4rem;
    border-radius: 18px;
  }

  .login-logo img {
    width: 115px;
    height: 65px;
  }

  .glass h2 {
    font-size: 1.4rem;
  }

  .form-control,
  .btn-primary {
    height: 44px;
  }

  .send-otp-btn {
    font-size: 0.72rem;
    padding: 0 9px;
  }
}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width: 360px) {
  .glass {
    padding: 1.2rem 1.1rem;
  }

  .glass h2 {
    font-size: 1.3rem;
  }
}

/* =====================================
   REDUCED MOTION
===================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================
   FORGOT PASSWORD DESIGN
===================================== */

.forgot-card {
    max-width: 460px;
    padding: 1.5rem 2rem;
    text-align: center;
}

/* SHIELD ICON CONTAINER */

.shield-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 18px;
}

/* SHIELD ICON */

.shield-icon {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.55);
    background: linear-gradient(
        145deg,
        rgba(184, 134, 11, 0.22),
        rgba(212, 175, 55, 0.08)
    );
    box-shadow:
        0 0 20px rgba(212, 175, 55, 0.15),
        inset 0 0 15px rgba(212, 175, 55, 0.10);

    animation: shieldRotate 5s ease-in-out infinite;
}

/* SHIELD SYMBOL */

.shield-icon i {
    font-size: 2.6rem;
    color: #f1d26a;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

/* ROTATION ANIMATION */

@keyframes shieldRotate {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* SUBTITLE */

.forgot-subtitle {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.85rem;
    margin-bottom: 22px;
}

/* FORM */

#fwpForm {
    text-align: left;
}

#fwpForm .mb-3 {
    margin-bottom: 0.9rem !important;
}

#fwpForm .btn-primary {
    margin-top: 8px;
}

/* OTP INPUT */

#fwpForm .otp-input {
    padding-right: 115px;
}

/* BACK TO LOGIN */

.back-login {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.back-login a {
    color: #f1d26a;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.back-login a:hover {
    color: #ffffff;
}

/* MOBILE */

@media (max-width: 576px) {
    .forgot-card {
        padding: 1.4rem 1.3rem;
    }

    .shield-icon {
        width: 68px;
        height: 68px;
    }

    .shield-icon i {
        font-size: 2.3rem;
    }

    .forgot-subtitle {
        font-size: 0.8rem;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .shield-icon {
        animation: none;
    }
}