/* ============================================================
   Auth Pages — login_and_signup.css
   AvyaEvents brand theme: dark-navy / red accent
   ============================================================ */

:root {
  --bg:       #1a1a2e;
  --surface:  #16213e;
  --surface-2:#0f3460;
  --accent:   #e94560;
  --text:     #ffffff;
  --muted:    rgba(255,255,255,0.6);
  --radius:   12px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
}

/* ── Page wrapper ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 0;
}

/* ── Two-panel wrapper ── */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ── Left decorative panel ── */
.auth-panel {
  display: none;
  width: 420px;
  flex-shrink: 0;
  background: linear-gradient(160deg, #0f3460 0%, #1a1a2e 60%, #e94560 150%);
  position: relative;
  overflow: hidden;
  padding: 48px 40px;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 900px) { .auth-panel { display: flex; } }

.auth-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.2;
  pointer-events: none;
}
.auth-blob-1 { width: 280px; height: 280px; background: var(--accent); top: -60px; right: -60px; }
.auth-blob-2 { width: 180px; height: 180px; background: #2196f3; bottom: 80px; left: -40px; }

.auth-panel-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.auth-panel-headline {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.auth-panel-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.auth-panel-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-panel-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
}
.perk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.auth-panel-footer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── Right form panel ── */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ── Card v2 ── */
.auth-card-v2 {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 40px 36px;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ── Labels ── */
.auth-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.label-icon { font-size: 14px; }

/* ── Inputs ── */
.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(15,52,96,0.6);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.18);
  background: rgba(15,52,96,0.9);
}

.auth-input.input-error {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(233,69,96,0.25);
}

.auth-input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* ── Password toggle ── */
.input-wrap { position: relative; }

.input-password .auth-input { padding-right: 44px; }

.toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.toggle-pw:hover { opacity: 1; }

/* ── Field errors ── */
.field-error {
  display: block;
  font-size: 12px;
  color: var(--accent);
  margin-top: 4px;
  min-height: 16px;
}

.auth-field { margin-bottom: 18px; }

/* ── Actions row ── */
.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 20px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
}

.auth-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: opacity 0.2s;
}
.auth-link:hover { opacity: 0.8; text-decoration: underline; }

/* ── Buttons ── */
.auth-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e94560, #c73652);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(233,69,96,0.3);
  letter-spacing: 0.3px;
}
.auth-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(233,69,96,0.45);
}

.auth-btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.auth-btn-secondary:hover { background: rgba(233,69,96,0.1); }

/* ── Error banner ── */
.auth-error-banner {
  background: rgba(233,69,96,0.12);
  border: 1.5px solid rgba(233,69,96,0.5);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-error-icon { font-size: 16px; flex-shrink: 0; }

/* ── Inline field error (used by register) ── */
.auth-error {
  color: var(--accent);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ── Footer ── */
.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Divider ── */
.auth-divider {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0;
}

/* ── Section title ── */
.auth-section-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 8px;
}

/* ── Role cards ── */
.auth-role-row { display: flex; gap: 12px; margin-bottom: 20px; }
.role-card {
  flex: 1; padding: 16px; border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.15); background: var(--surface-2);
  color: var(--text); cursor: pointer; text-align: center;
  transition: border-color 0.2s, background 0.2s; font-weight: 600;
}
.role-card.selected { border-color: var(--accent); background: rgba(233,69,96,0.15); }

/* ── SSO buttons ── */
.auth-sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15); background: transparent;
  color: var(--text); cursor: pointer; font-size: 14px; transition: background 0.2s;
}
.sso-btn:hover { background: rgba(255,255,255,0.05); }

/* ── Dialog ── */
dialog { border: none; border-radius: 16px; padding: 0; width: min(420px, 92vw); background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0,0,0,0.6); }
.dlg-head { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 700; font-size: 16px; }
.dlg-body { padding: 18px 20px; }
.dlg-foot { padding: 16px 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .auth-card-v2 { padding: 28px 20px; }
  .auth-form-panel { padding: 24px 16px; }
  .auth-role-row { flex-direction: column; }
}
