/* =============================================
   DOXXA FLORAL — Auth Pages (Login + Signup)
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #faf9f6;
  color: #0f1c14;
  min-height: 100vh;
  display: flex;
}

/* ── LEFT PANEL ── */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0f2d1f 0%, #0a1a10 60%, #0d2318 100%);
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,150,12,.2) 0%, transparent 70%);
  top: -120px; left: -120px; pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,122,79,.22) 0%, transparent 70%);
  bottom: -80px; right: -60px; pointer-events: none;
}

.left-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.brand-logo {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, #c9960c, #e8cc80);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(201,150,12,.35);
}
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 700; color: #fff;
  line-height: 1.1; margin-bottom: 8px;
}
.brand-name span { color: #e8cc80; }
.brand-tagline {
  font-size: 12px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(232,204,128,.55);
  margin-bottom: 48px;
}

.feature-list { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 13px 16px;
}
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(201,150,12,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #e8cc80;
}
.feature-text strong { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.feature-text span   { font-size: 12px; color: rgba(255,255,255,.5); }

.left-footer {
  position: absolute; bottom: 24px; left: 0; right: 0;
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,.2); letter-spacing: .06em;
}

/* ── RIGHT PANEL ── */
.auth-right {
  width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  background: #fde3cc;
  position: relative;
  overflow-y: auto;
}
.auth-right::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,150,12,.3) 30%, rgba(201,150,12,.3) 70%, transparent);
}

/* Mobile brand (hidden on desktop) */
.mobile-brand {
  display: none;
  text-align: center;
  margin-bottom: 28px;
}
.mobile-logo {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #c9960c, #e8cc80);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 10px;
}
.mobile-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: #0f1c14;
}
.mobile-title span { color: #c9960c; }
.mobile-sub {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: #7a9080; margin-top: 3px;
}

/* ── FORM HEADER ── */
.auth-header { margin-bottom: 28px; }
.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: #0f1c14; margin-bottom: 5px;
}
.auth-sub { font-size: 13px; color: #7a9080; }

/* ── ALERT ── */
.alert-box {
  border-radius: 10px; padding: 11px 14px;
  font-size: 13px; font-weight: 500;
  display: none; align-items: center; gap: 9px;
  margin-bottom: 18px;
}
.alert-box.show { display: flex; }
.alert-box.error   { background: #fee8e8; border: 1.5px solid #fbd0d0; color: #c0392b; }
.alert-box.success { background: #e6f7ee; border: 1.5px solid #b0e8cc; color: #1a7a45; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #3a5040; margin-bottom: 7px;
}

.input-wrap {
  position: relative; display: flex; align-items: stretch;
}
.input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; color: #7a9080; pointer-events: none; z-index: 2;
}
.form-input {
  width: 100%;
  border: 1.5px solid #e0ebe4;
  border-radius: 10px;
  padding: 13px 48px 13px 42px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f1c14;
  background: #fff;
  outline: none;
  transition: border-color .22s, box-shadow .22s;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: #1a4a2e;
  box-shadow: 0 0 0 3px rgba(26,74,46,.1);
}
.form-input.error { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.1); }
.form-input::placeholder { color: #b0c4b8; }

/* Eye toggle button */
.toggle-pw {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 46px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: #7a9080;
  border-radius: 0 10px 10px 0;
  z-index: 10;
  transition: color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.toggle-pw:hover  { color: #1a4a2e; background: rgba(26,74,46,.06); }
.toggle-pw:active { background: rgba(26,74,46,.12); }

/* Field error */
.form-error {
  font-size: 12px; color: #c0392b;
  margin-top: 6px; display: none;
  align-items: center; gap: 5px;
}
.form-error.show { display: flex; }

/* ── FORM META (remember + forgot) ── */
.form-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.remember-wrap {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; color: #3a5040;
}
.remember-wrap input[type=checkbox] {
  width: 16px; height: 16px; border-radius: 4px;
  accent-color: #1a4a2e; cursor: pointer; flex-shrink: 0;
}

/* ── SUBMIT BUTTON ── */
.btn-auth {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, #235d1e, #062e08);
  color: #fff; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .22s;
  box-shadow: 0 4px 16px rgba(15,45,31,.28);
  position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn-auth::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0; transition: opacity .22s;
}
.btn-auth:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,45,31,.32); }
.btn-auth:hover:not(:disabled)::after { opacity: 1; }
.btn-auth:active:not(:disabled) { transform: translateY(0); }
.btn-auth:disabled { opacity: .75; cursor: not-allowed; }

/* Spinner */
.btn-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DIVIDER ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0;
  font-size: 11px; color: #b0c4b8;
  letter-spacing: .08em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e0ebe4; }

/* ── DEMO BOX ── */
.demo-box {
  background: linear-gradient(135deg, #fdf6e3, #fef9ec);
  border: 1.5px solid rgba(201,150,12,.28);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.demo-title {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #a07c00; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.demo-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.demo-row:last-of-type { margin-bottom: 0; }
.demo-key { font-size: 12px; color: #7a6000; font-weight: 600; }
.demo-val {
  font-size: 12px; color: #3a2a00; font-weight: 700;
  background: rgba(201,150,12,.15); padding: 3px 10px;
  border-radius: 6px; cursor: pointer;
  font-family: monospace; letter-spacing: .04em;
  transition: background .2s;
}
.demo-val:hover { background: rgba(201,150,12,.28); }
.btn-quick {
  width: 100%; margin-top: 10px; padding: 9px;
  background: linear-gradient(135deg, #c9960c, #e8aa20);
  color: #fff; border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-quick:hover { filter: brightness(1.08); }

/* ── FOOTER LINKS ── */
.auth-switch {
  text-align: center; font-size: 13px; color: #7a9080; margin-top: 16px;
}
.link-green { color: #1a4a2e; font-weight: 700; text-decoration: none; }
.link-green:hover { text-decoration: underline; }
.link-gold { color: #c9960c; font-weight: 600; text-decoration: none; }
.link-gold:hover { color: #a07c00; }
.link-muted { color: #7a9080; font-size: 12px; text-decoration: none; }
.link-muted:hover { color: #1a4a2e; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .auth-left { display: none; }
  .auth-right {
    width: 100%; padding: 40px 28px;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 48px;
  }
  .auth-right::before { display: none; }
  body { background: #faf9f6; }
  .mobile-brand { display: block; }
}
@media (max-width: 420px) {
  .auth-right { padding: 32px 18px; }
  .auth-title { font-size: 24px; }
}
