/* =============================================
   RapidResQ – Auth Pages (Login / Register)
   Split layout: Purple branding | White form
   ============================================= */

.auth-layout {
  display: flex; min-height: 100vh; width: 100%;
}

/* ---- Branding Panel ---- */
.auth-brand {
  flex: 0 0 42%; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
  padding: 40px; position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; top: -30%; right: -30%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
}
.auth-brand-logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 2px; color: #fff; position: relative; z-index: 1; }
.auth-brand-logo-img { width: 36px; height: 36px; object-fit: contain; }
.auth-brand-logo span { color: var(--sos-red); }
.auth-brand-line { width: 60px; height: 3px; background: var(--sos-red); border-radius: 2px; margin-top: 24px; }
.auth-brand-content { position: relative; z-index: 1; }
.auth-brand-content h2 {
  font-size: 2rem; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 16px;
}
.auth-brand-content p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.6; max-width: 320px; }
.auth-brand-footer {
  display: flex; gap: 8px; align-items: center; font-size: .75rem;
  color: rgba(255,255,255,.3); position: relative; z-index: 1;
}
.auth-brand-footer a { color: rgba(255,255,255,.4); }
.auth-brand-footer a:hover { color: rgba(255,255,255,.7); }
.auth-brand-footer .dot { opacity: .3; }

/* ---- Form Panel ---- */
.auth-form-panel {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; background: var(--surface);
}
.auth-form-container { width: 100%; max-width: 420px; }
.auth-form-container h1 { font-size: 1.65rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.auth-form-container .auth-subtitle { font-size: .88rem; color: var(--text-sec); margin-bottom: 32px; }

/* ---- Auth Form Elements ---- */
.auth-field { margin-bottom: 20px; }
.auth-label { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text-sec); margin-bottom: 8px; }
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border);
  border-radius: 8px; font-size: .88rem; color: var(--text);
  background: var(--bg); transition: all .2s ease;
}
.auth-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(108,60,225,.08); }
.auth-input::placeholder { color: var(--text-ter); }
.auth-toggle-pw {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-ter); cursor: pointer; padding: 2px;
}
.auth-toggle-pw:hover { color: var(--text-sec); }
.auth-toggle-pw .material-symbols-outlined { font-size: 20px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-remember { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-sec); cursor: pointer; }
.auth-remember input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer;
}
.auth-forgot { font-size: .82rem; color: var(--primary); font-weight: 600; }

/* ---- Auth Buttons ---- */
.auth-btn {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-size: .92rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s ease;
}
.auth-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(103,3,5,.25);
}
.auth-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(103,3,5,.35); }
.auth-btn-primary:active { transform: translateY(0); }

.auth-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-ter); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.auth-social { display: flex; gap: 12px; margin-bottom: 24px; }
.auth-social-btn {
  flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: all .2s ease;
}
.auth-social-btn:hover { background: var(--bg); border-color: var(--primary-lighter); }
.auth-social-btn svg { width: 20px; height: 20px; }

.auth-switch { text-align: center; font-size: .85rem; color: var(--text-sec); }
.auth-switch a { color: var(--primary); font-weight: 700; }

/* ---- Auth Form Grid (Register) ---- */
.auth-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-form-grid .auth-field { margin-bottom: 0; }
.auth-section-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--primary); margin: 24px 0 16px; padding-top: 20px;
  border-top: 1px solid var(--border);
}
.auth-terms {
  display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 24px;
  font-size: .78rem; color: var(--text-sec); line-height: 1.5;
}
.auth-terms a { color: var(--primary); font-weight: 600; }
.auth-terms input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }

/* ---- Status Bar ---- */
.auth-status-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary-dark); padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; z-index: 50;
}
.auth-status-left { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); }
.auth-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.auth-status-ready { color: var(--success); font-weight: 600; }
.auth-status-right { color: rgba(255,255,255,.4); }
.auth-status-right strong { color: var(--success); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .auth-layout { flex-direction: column; }
  .auth-brand { flex: none; padding: 32px 24px 28px; }
  .auth-brand-content h2 { font-size: 1.4rem; }
  .auth-brand-content p { display: none; }
  .auth-brand-footer { display: none; }
  .auth-form-panel { padding: 28px 20px; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-social { flex-direction: column; }
  .auth-status-bar { display: none; }
}
