/* ==========================================================================
   AUTHENTICATION SUITE STYLES (login, 2fa, forgot-password, reset-password)
   ========================================================================== */

.auth-page {
  min-height: 100vh;
  background-color: var(--body-bg);
  background-image:
    radial-gradient(at 0% 0%, rgba(var(--brand-primary-rgb), 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(var(--brand-primary-rgb), 0.06) 0px, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
}

.auth-main-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.07), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card-top-bar {
  height: 5px;
  background: var(--btn-gradient);
  width: 100%;
  transition: background 0.3s ease;
}

.auth-card-body {
  padding: 2.25rem 2rem;
}

@media (max-width: 575.98px) {
  .auth-card-body {
    padding: 1.75rem 1.25rem;
  }
}

.auth-brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--btn-gradient);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.625rem;
  box-shadow: 0 6px 16px rgba(var(--brand-primary-rgb), 0.26);
  margin-bottom: 1.125rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.auth-subtitle {
  font-size: 0.84375rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* Password Eye Toggle Input Group */
.password-input-group .form-control {
  border-right: none;
}

.password-toggle-btn {
  border: 1px solid #cbd5e1;
  border-left: none;
  background-color: #ffffff;
  color: var(--text-muted);
  padding: 0 0.875rem;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--brand-primary);
}

.password-input-group:focus-within .form-control,
.password-input-group:focus-within .password-toggle-btn {
  border-color: var(--brand-primary);
}

/* 6-Digit 2FA OTP Inputs */
.otp-input-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.otp-input:focus {
  background-color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.22rem var(--focus-ring-color);
  outline: none;
}

.otp-input.filled {
  background-color: var(--badge-subtle-bg);
  border-color: var(--brand-primary);
  color: var(--badge-subtle-color);
}

@media (max-width: 420px) {
  .otp-input {
    width: 42px;
    height: 48px;
    font-size: 1.1rem;
  }
}

/* Password Complexity Rules Checklist */
.password-checklist {
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem;
  margin-top: 0.75rem;
}

.password-checklist-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.password-rule-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.password-rule-item:last-child {
  margin-bottom: 0;
}

.password-rule-item i {
  font-size: 0.9375rem;
  color: #94a3b8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.password-rule-item.rule-valid {
  color: #15803d;
  font-weight: 600;
}

.password-rule-item.rule-valid i {
  color: #16a34a;
  transform: scale(1.1);
}

.auth-page .form-control,
.auth-page .btn,
.auth-page .password-toggle-btn {
  min-height: 44px;
}

.auth-page .form-check-input {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
}

.auth-page .form-check-label {
  padding-top: 0.15rem;
}

.auth-page .otp-input {
  min-width: 0;
  width: clamp(38px, 12vw, 52px);
  height: 52px;
}

.auth-page .otp-input-group {
  justify-content: center;
  gap: clamp(0.35rem, 2vw, 0.6rem);
}

.auth-page .alert {
  font-size: 0.8125rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.78125rem;
  color: var(--text-muted);
}
