/* ==========================================================================
   WOTM - LOGIN & SIGNUP AUTH STYLESHEET (css/login.css)
   Pixel-Perfect Centered Authentication UI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --auth-primary: #009B4D;
  --auth-primary-hover: #008240;
  --auth-primary-light: #E6F7EF;
  --auth-primary-subtle: #D7F5E7;
  --auth-dark: #072619;
  --auth-gold: #EAA838;
  --auth-gold-hover: #D8982D;
  --auth-text-title: #0E3624;
  --auth-text-body: #4A5568;
  --auth-text-muted: #718096;
  --auth-border: #E2E8F0;
  --auth-border-focus: #009B4D;
  --auth-card-bg: #FFFFFF;
  --auth-body-bg: #F5F9F6;
  --auth-radius-sm: 10px;
  --auth-radius-md: 16px;
  --auth-radius-lg: 22px;
  --auth-radius-pill: 50px;
  --auth-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --auth-shadow: 0 12px 40px rgba(7, 38, 25, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* --------------------------------------------------------------------------
   2. PAGE HERO / BREADCRUMB BANNER
   -------------------------------------------------------------------------- */
.auth-hero-section {
  position: relative;
  overflow: hidden;
  padding: 135px 0 65px 0;
  background-color: var(--auth-dark);
  color: #FFFFFF;
  text-align: center;
}

.auth-hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.20;
  pointer-events: none;
}

.auth-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(180deg, rgba(3, 24, 16, 0.90) 0%, rgba(5, 36, 24, 0.95) 100%);
  pointer-events: none;
}

.auth-hero-pattern-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 3;
  opacity: 0.10;
  pointer-events: none;
}

.auth-hero-container {
  position: relative;
  z-index: 4;
}

.auth-breadcrumb-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.auth-breadcrumb-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color var(--auth-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-breadcrumb-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.auth-breadcrumb-separator {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.auth-breadcrumb-current {
  color: #FFFFFF;
  font-weight: 600;
}

.auth-hero-title {
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.auth-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. MAIN AUTH SECTION LAYOUT
   -------------------------------------------------------------------------- */
.auth-main-section {
  background-color: var(--auth-body-bg);
  min-height: calc(100vh - 120px);
  padding: 130px 0 95px 0;
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   4. CENTERED AUTHENTICATION CARD
   -------------------------------------------------------------------------- */
.auth-form-card {
  background: var(--auth-card-bg);
  border: 1px solid rgba(0, 155, 77, 0.14);
  border-radius: var(--auth-radius-lg);
  padding: 44px 40px;
  box-shadow: var(--auth-shadow);
  transition: var(--auth-transition);
}

/* Card Header & Brand Logo Badge */
.auth-card-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand-badge {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #E6F7EF 0%, #FFFFFF 100%);
  border: 2px solid var(--auth-primary-light);
  box-shadow: 0 4px 16px rgba(0, 155, 77, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-badge-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-card-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--auth-text-title);
  margin-bottom: 6px;
  line-height: 1.3;
}

.auth-card-subtitle {
  font-size: 0.94rem;
  color: var(--auth-text-muted);
  margin: 0;
}

/* Auth Pane Visibility */
.auth-form-pane {
  display: none;
}

.auth-form-pane.is-active {
  display: block;
  animation: authPaneFadeIn 0.3s ease;
}

@keyframes authPaneFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Groups & Inputs */
.auth-form-group {
  margin-bottom: 22px;
}

.auth-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--auth-text-title);
  margin-bottom: 8px;
}

.auth-label .req {
  color: #DC2626;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  color: var(--auth-text-muted);
  font-size: 0.98rem;
  pointer-events: none;
  transition: color var(--auth-transition);
}

.auth-input-field {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1.5px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background-color: #FAFCFA;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--auth-text-title);
  outline: none;
  transition: var(--auth-transition);
}

.auth-input-field:focus {
  border-color: var(--auth-border-focus);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(0, 155, 77, 0.12);
}

.auth-input-field:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--auth-primary);
}

.auth-toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--auth-text-muted);
  font-size: 0.96rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--auth-transition);
}

.auth-toggle-password:hover {
  color: var(--auth-text-title);
}


/* Options Bar (Remember Me & Forgot Password) */
.auth-options-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
  margin-bottom: 24px;
  font-size: 0.91rem;
}

.auth-checkbox-group {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  color: var(--auth-text-body);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0;
}

.auth-checkbox {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--auth-primary);
  cursor: pointer;
  vertical-align: middle;
}

.auth-forgot-link {
  color: var(--auth-primary);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--auth-transition);
}

.auth-forgot-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* Submit Action Button */
.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-hover) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--auth-radius-pill);
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--auth-transition);
  box-shadow: 0 6px 18px rgba(0, 155, 77, 0.32);
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #006B34 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 155, 77, 0.42);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

/* Switch Form Prompt */
.auth-switch-text {
  text-align: center;
  font-size: 0.94rem;
  color: var(--auth-text-body);
  margin-top: 26px;
  margin-bottom: 0;
}

.auth-switch-link {
  color: var(--auth-primary);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  margin-left: 4px;
  transition: color var(--auth-transition);
}

.auth-switch-link:hover {
  color: var(--auth-primary-hover);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .auth-hero-section {
    padding: 115px 0 50px 0;
  }

  .auth-hero-title {
    font-size: 2.05rem;
  }

  .auth-form-card {
    padding: 36px 30px;
  }
}

@media (max-width: 575.98px) {
  .auth-hero-section {
    padding: 105px 0 45px 0;
  }

  .auth-hero-title {
    font-size: 1.65rem;
  }

  .auth-hero-subtitle {
    font-size: 0.92rem;
  }

  .auth-main-section {
    padding: 42px 0 65px 0;
  }

  .auth-form-card {
    padding: 28px 20px;
    border-radius: var(--auth-radius-md);
  }

  .auth-card-title {
    font-size: 1.38rem;
  }

  .auth-brand-badge {
    width: 58px;
    height: 58px;
    margin-bottom: 12px;
  }

  .auth-badge-logo {
    width: 38px;
    height: 38px;
  }

  .auth-input-field,
  .auth-submit-btn {
    height: 48px;
  }

  .auth-submit-btn {
    font-size: 0.98rem;
  }
}

/* ==========================================================================
   PASSWORD RESET COUNTDOWN TIMER STYLES
   ========================================================================== */
.auth-countdown-bar {
  background: #f8fafc;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  padding: 12px 18px;
  margin: 16px 24px 0;
}

.auth-timer-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-text-body);
  display: flex;
  align-items: center;
}

.auth-timer-digits {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--auth-primary);
  background: var(--auth-primary-light);
  padding: 2px 12px;
  border-radius: 6px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.auth-timer-digits.timer-warning {
  color: #ea580c;
  background: #fff7ed;
}

.auth-timer-digits.timer-critical {
  color: #dc2626;
  background: #fef2f2;
}

.auth-progress-track {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.auth-progress-bar {
  height: 100%;
  width: 100%;
  background: var(--auth-primary);
  border-radius: 3px;
  transition: width 1s linear;
}
