/* ═══════════════════════════════════════════════════════════════
   GilFlow — auth.css
   Styles for login, register, forgot-password pages
   ═══════════════════════════════════════════════════════════════ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background accent blob */
.auth-shell::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.auth-panel {
  width: 420px;
  max-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.4rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.auth-logo-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.auth-logo-icon img { width: 22px; height: 22px; }

.auth-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.auth-divider {
  height: 1px;
  background: var(--border);
  margin: 1.2rem 0;
}

.auth-footer {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 1.4rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

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

.input-password-wrap .cf-input {
  padding-right: 2.5rem;
}

.password-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-muted);
  cursor: pointer; font-size: 1rem;
  padding: 0;
  transition: color 0.15s;
}
.password-toggle:hover { color: var(--accent); }

/* Theme toggle on auth pages */
.auth-theme-toggle {
  position: fixed;
  top: 1.2rem; right: 1.4rem;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  z-index: 10;
}
.auth-theme-toggle:hover { background: var(--accent-dim); color: var(--accent); }

/* Success state (forgot password sent) */
.auth-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(76,175,122,0.12);
  border: 1px solid rgba(76,175,122,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--positive);
  margin: 0 auto 1.5rem;
}

/* Demo hint box */
.auth-demo-hint {
  background: var(--accent-dim);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}
[data-theme="light"] .auth-demo-hint {
  border-color: rgba(26,79,160,0.15);
}
.auth-demo-hint strong { color: var(--accent); }

/* Legal document content — shared by the Register modal and the standalone Terms/Privacy pages */
.legal-box{position:relative;z-index:1;width:100%;max-width:580px;max-height:80vh;background:var(--bg-panel);border:1px solid var(--border);border-radius:14px;display:flex;flex-direction:column;box-shadow:0 24px 64px rgba(0,0,0,.4)}
.legal-header{padding:1.2rem 1.5rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;flex-shrink:0}
.legal-title{font-family:'Cormorant Garamond',serif;font-size:1.3rem;font-weight:500;color:var(--text-primary)}
.legal-close{background:none;border:none;color:var(--text-muted);font-size:1.2rem;cursor:pointer;padding:4px;border-radius:6px;transition:color .2s,background .2s}
.legal-close:hover{color:var(--text-primary);background:var(--bg-card)}
.legal-body{padding:1.5rem;overflow-y:auto;font-size:.83rem;color:var(--text-secondary);line-height:1.75}
.legal-body h3{font-size:.88rem;font-weight:600;color:var(--text-primary);margin:1.2rem 0 .4rem}
.legal-body h3:first-child{margin-top:0}
.legal-body p{margin-bottom:.75rem}

/* Standalone Terms/Privacy pages */
.legal-page{max-width:760px;margin:0 auto;padding:3rem 1.5rem 5rem}
.legal-page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:2rem}
.legal-page-logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.legal-page-logo span{font-family:'Cormorant Garamond',serif;font-size:1.3rem;font-weight:500;color:var(--text-primary)}
.legal-page-title{font-family:'Cormorant Garamond',serif;font-size:2.2rem;font-weight:500;color:var(--text-primary);margin-bottom:2rem}
