/* auth/auth.css — Intarian auth page styles */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --primary:       #E31B6D;
  --primary-dark:  #C2155D;
  --primary-glow:  rgba(227,27,109,0.12);
  --charcoal:      #2D2D2D;
  --warm-white:    #FAF3E0;
  --beige-light:   #f5ede0;
  --soft-beige:    #D5C4A1;
  --text-dark:     #1a1a1a;
  --text-mid:      #4a4a4a;
  --text-light:    #888;
  --border:        rgba(213,196,161,0.5);
  --border-strong: rgba(213,196,161,0.8);
  --card-shadow:   0 8px 40px rgba(0,0,0,0.10);
  --radius:        18px;
  --radius-sm:     10px;
  --radius-xs:     7px;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--warm-white);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(227,27,109,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(45,45,45,0.04) 0%, transparent 50%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.auth-header {
  background: var(--charcoal);
  padding: 32px 36px 28px;
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 6px;
}

.logo-icon {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; color: #fff;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; color: #fff;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

.auth-body { padding: 32px 36px 36px; }

.auth-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-desc {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.5;
}

.form-group { margin-bottom: 16px; }

label {
  display: block;
  font-size: 11px; font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-xs);
  background: var(--warm-white);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder { color: var(--text-light); }

.password-wrap {
  position: relative;
}

.password-wrap input { padding-right: 42px; }

.toggle-pw {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-light); padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s;
}

.toggle-pw:hover { color: var(--primary); }

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 3px 12px rgba(227,27,109,0.3);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(227,27,109,0.4);
}

.btn-primary:active { transform: translateY(0); }

.auth-links {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}

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

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

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-size: 13px; line-height: 1.5;
  margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px;
}

.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.alert-error {
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #d1fae5; color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-info {
  background: #dbeafe; color: #1e40af;
  border: 1px solid #bfdbfe;
}

.divider {
  text-align: center; font-size: 12px;
  color: var(--text-light); margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}

.divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
}

.loading { opacity: 0.6; pointer-events: none; }
