*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none; }

:root {
  --orange: #e64a19;
  --orange-light: #ff7043;
  --orange-glow: rgba(230, 74, 25, 0.18);
  --green: #2e7d32;
  --green-glow: rgba(46, 125, 50, 0.15);
  --ink: #1a1008;
  --muted: #6b5a4e;
  --surface: rgba(255,255,255,0.72);
  --line: rgba(0,0,0,0.08);
}

html, body {
  height: 100%;
  min-height: 100dvh;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #faf7f4;
  color: var(--ink);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.login-page {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100dvh;
}

.login-page--single .form-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.login-page--single .mobile-only-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.login-btn {
  width: 100%; min-height: 54px;
  margin-top: clamp(20px, 4vw, 28px);
  padding: 15px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.05rem);
  font-weight: 700; letter-spacing: .02em;
  border-radius: 99px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #e64a19 0%, #bf360c 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(220,60,10,.25), 0 2px 0 rgba(255,255,255,.1) inset;
  transition: box-shadow .25s ease, transform .2s ease, filter .2s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.login-btn:hover {
  box-shadow: 0 12px 32px rgba(220,60,10,.4), 0 2px 0 rgba(255,255,255,.1) inset;
  transform: translateY(-1.5px); filter: brightness(1.05);
}

.login-btn:active { transform: translateY(0) scale(0.985); }

.forgot-link {
  display: block; width: 100%;
  margin-top: 16px;
  text-align: center;
  font-size: clamp(.82rem, 2vw, .875rem); font-weight: 600;
  color: var(--orange); background: none; border: none;
  cursor: pointer; padding: 8px;
  text-decoration: underline; text-underline-offset: 3px;
  opacity: .85; transition: opacity .2s ease, color .2s ease;
  min-height: 40px;
}

.forgot-link:hover { opacity: 1; color: var(--orange-light); }

.form-footer-note {
  margin-top: clamp(16px, 3vw, 22px);
  font-size: clamp(.78rem, 2vw, .84rem);
  color: var(--muted); text-align: center; line-height: 1.6;
  opacity: .75;
}

.form-footer-note a {
  color: var(--orange); font-weight: 700;
  text-decoration: none;
}

.form-footer-note a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .85rem; font-weight: 600;
  color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 0;
  margin-bottom: clamp(18px, 4vw, 28px);
  opacity: .7; transition: opacity .2s;
  min-height: 36px;
}

.back-link:hover { opacity: 1; }
.back-link svg { flex-shrink: 0; }

.sent-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 14px;
  padding: clamp(12px, 3vw, 20px) 0;
}

.sent-icon {
  width: 68px; height: 68px; border-radius: 22px;
  background: rgba(46,125,50,.1);
  border: 1px solid rgba(46,125,50,.2);
  display: grid; place-items: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px rgba(46,125,50,.12);
}

.sent-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
}

.sent-card p {
  font-size: clamp(.82rem, 2vw, .9rem);
  color: var(--muted); line-height: 1.65;
  max-width: 290px;
}

.sent-card .back-btn {
  margin-top: 8px; padding: 12px 28px;
  border-radius: 99px; border: 1.5px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.8); cursor: pointer;
  font-weight: 700; font-size: .88rem; color: var(--ink);
  transition: background .2s, border-color .2s;
  min-height: 44px;
}

.sent-card .back-btn:hover { background: #fff; border-color: rgba(0,0,0,.18); }

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-fade { animation: panelFadeIn .3s cubic-bezier(.22,.68,0,1.2) both; }

@keyframes spin-glow {
  to { transform: rotate(360deg); }
}

.spinner-inline {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-glow .7s linear infinite;
  vertical-align: middle;
}

@media (max-width: 860px) {
  .login-page {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }
  .mobile-only-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
  }
  .form-panel {
    padding: 40px 24px;
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 540px) {
  .glass-form-card {
    padding: 32px 24px;
    border-radius: 24px;
  }
  .form-panel {
    padding: 32px 16px;
  }
  .mobile-only-brand {
    margin-bottom: 20px;
  }
}

@media (max-width: 360px) {
  .glass-form-card {
    padding: 24px 18px;
    border-radius: 18px;
  }
  .field-input {
    min-height: 48px;
    font-size: .95rem;
    padding: 12px 16px;
  }
  .login-btn {
    min-height: 50px;
    font-size: .98rem;
    margin-top: 20px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .login-page {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .mobile-only-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }
  .form-panel {
    justify-content: flex-start;
    padding-top: 32px;
  }
}
