/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #a8d4f5;
  position: relative;
  overflow: hidden;
}

/* ─────────────────────────────────────────
   BACKGROUND
───────────────────────────────────────── */
.bg-overlay {
  position: fixed;
  inset: 0;
  background-image:
    url('/Ux Assets/Assets/Imgs/BGs/bg bubbles.svg'),
    url('/Ux Assets/Assets/Imgs/BGs/BG Image.svg');
  background-size: cover, cover;
  background-position: center, center;
  background-color: #b8dff5;
  z-index: 0;
}

/* ─────────────────────────────────────────
   CARD
───────────────────────────────────────── */
.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 36px 40px 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 32px rgba(0, 40, 100, 0.18);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ─────────────────────────────────────────
   LOGO
───────────────────────────────────────── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  height: 80px;
  width: auto;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #0d2260;
  margin-bottom: 6px;
  text-align: center;
}

.card-subtitle {
  font-size: 13px;
  color: #5a6a85;
  text-align: center;
  margin-bottom: 22px;
  line-height: 1.5;
}

.hint-text {
  font-size: 12px;
  color: #8a96a8;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

/* ─────────────────────────────────────────
   FORM ELEMENTS
───────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #0d2260;
  margin-bottom: 6px;
}

.req {
  color: #e02020;
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #c8d4e8;
  border-radius: 8px;
  font-size: 14px;
  color: #0d2260;
  background: #f5f8ff;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #1a4db5;
  background: #fff;
}

.form-group input::placeholder {
  color: #aab4c8;
}

/* Password wrap */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap input {
  flex: 1;
  padding-right: 40px;
}

.toggle-pw {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.toggle-pw:hover { opacity: 0.8; }

/* Forgot inline link */
.forgot-inline {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.forgot-inline a {
  font-size: 12px;
  color: #1a4db5;
  text-decoration: none;
}

.forgot-inline a:hover {
  text-decoration: underline;
}

/* OTP input */
.otp-input {
  letter-spacing: 8px;
  font-size: 22px;
  text-align: center;
  font-weight: 700;
  color: #0d2260;
}

/* ─────────────────────────────────────────
   CHECKBOX
───────────────────────────────────────── */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.checkbox-row input[type="checkbox"] {
  accent-color: #1a4db5;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.checkbox-row label {
  font-size: 13px;
  color: #0d2260;
  cursor: pointer;
}

/* ─────────────────────────────────────────
   PRIMARY BUTTON
───────────────────────────────────────── */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: #1a4db5;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #0d3a9e;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Powered by attribution */
.powered-by {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.powered-by b {
  color: #1a4db5;
}

/* ─────────────────────────────────────────
   BACK LINK
───────────────────────────────────────── */
.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #1a4db5;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   OTP FOOTER
───────────────────────────────────────── */
.otp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 13px;
  color: #5a6a85;
}

.timer {
  color: #1a4db5;
  font-weight: 600;
}

.resend-link {
  color: #1a4db5;
  text-decoration: none;
  font-weight: 600;
}

.resend-link.disabled {
  color: #aab4c8;
  pointer-events: none;
}

.whatsapp-link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #1a4db5;
  text-decoration: none;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   SUCCESS STATE
───────────────────────────────────────── */
.success-icon {
  width: 64px;
  height: 64px;
  background: #e6f4ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.go-to-login {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #1a4db5;
  font-weight: 600;
  text-decoration: none;
}

.go-to-login:hover {
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #0d2260;
  color: #fff;
  padding: 14px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 999;
  transition: opacity 0.4s;
}

.toast.hidden {
  display: none;
}

.toast-icon {
  font-size: 18px;
  color: #4ade80;
}

/* ─────────────────────────────────────────
   STATE VISIBILITY
───────────────────────────────────────── */
.state {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.state.hidden {
  display: none;
}