/**
 * BlissWed – Auth Pages Stylesheet
 * Login & Signup screens
 */

/* ── Base ─────────────────────────────────────────────── */
:root {
  --accent:        #4f52d3;
  --accent-hover:  #3e41c0;
  --accent-light:  rgba(79, 82, 211, .10);
  --border-color:  rgba(79, 82, 211, .20);
  --text-primary:  #111130;
  --text-secondary:#5a5a82;
  --text-muted:    #8585a8;
  --page-bg:       #eef0fc;
  --card-bg:       #fff;
}

[data-theme="dark"] {
  --accent:        #6366f1;
  --accent-hover:  #818cf8;
  --accent-light:  rgba(99, 102, 241, .12);
  --border-color:  rgba(99, 102, 241, .22);
  --text-primary:  #e8e8f8;
  --text-secondary:#9090c0;
  --text-muted:    #6060a0;
  --page-bg:       #0e0e1a;
  --card-bg:       #16162a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background .35s, color .35s;
}

/* ── Auth Wrapper ─────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

/* ── Brand / Left Panel ───────────────────────────────── */
.auth-brand {
  background: linear-gradient(145deg, #1a1a3e 0%, #2d2d72 50%, #4f52d3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.auth-brand::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(99, 102, 241, .12);
  top: -150px; left: -150px;
  pointer-events: none;
}
.auth-brand::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}
.brand-logo-box {
  width: 56px; height: 56px;
  border: 2.5px solid rgba(255,255,255,.5);
  border-radius: 14px;
  display: grid; place-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 20px;
  color: #fff;
}
.brand-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px; font-weight: 800;
  color: #fff; line-height: 1;
}
.brand-logo-text em {
  font-style: normal;
  opacity: .75;
  font-weight: 600;
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px; font-weight: 800;
  color: #fff; line-height: 1.2;
  margin-bottom: 16px;
  text-align: center;
  position: relative; z-index: 1;
}
.brand-subtitle {
  font-size: 15px; color: rgba(255,255,255,.68);
  text-align: center; line-height: 1.6;
  max-width: 340px;
  position: relative; z-index: 1;
}

.brand-features {
  list-style: none;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative; z-index: 1;
}
.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.80);
}
.brand-features li i {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  color: #fff; font-size: 12px;
  flex-shrink: 0;
}

/* ── Form / Right Panel ───────────────────────────────── */
.auth-form-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  background: var(--card-bg);
}

@media (max-width: 480px) {
  .auth-form-side { padding: 40px 24px; }
}

.auth-box {
  width: 100%;
  max-width: 420px;
}

.auth-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 32px;
}
.auth-sub a {
  color: var(--accent); font-weight: 600; text-decoration: none;
}
.auth-sub a:hover { text-decoration: underline; }

/* Form fields */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control-bw {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Heebo', sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control-bw:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-control-bw.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: 12px; color: #dc3545; margin-top: 4px; }

/* Input with icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control-bw { padding-left: 40px; }
.input-icon-wrap .inp-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}
.input-icon-wrap .inp-eye {
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  background: none; border: none;
}

/* Remember / forgot */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}
.auth-row a { color: var(--accent); text-decoration: none; }
.auth-row a:hover { text-decoration: underline; }

/* Submit button */
.btn-auth {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-auth:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-auth:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border-color);
}

/* Theme toggle small */
.auth-theme-btn {
  position: fixed;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-secondary);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 15px;
  transition: background .2s, color .2s;
  z-index: 100;
}
.auth-theme-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ── Toast overrides ──────────────────────────────────── */
.toast-container { z-index: 9999; }
