/* =====================================================
   NURIM DERMATECH - Auth Pages CSS (auth.css)
   ===================================================== */

:root {
  --kaya-primary: #8B6F47;
  --kaya-dark: #2C1810;
  --kaya-light: #FDF8F4;
  --kaya-muted: #9B8E85;
  --kaya-border: #E8DDD5;
}

body.auth-body { background: var(--kaya-light); }

/* WRAPPER */
.auth-wrapper {
  display: flex;
  min-height: calc(100vh - 140px);
}

/* LEFT PANEL */
.auth-left {
  flex: 0 0 42%;
  background: linear-gradient(145deg, #2C1810 0%, #5C3D2E 50%, #8B6F47 100%);
  color: #fff;
  padding: 50px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.auth-logo { height: 44px; filter: brightness(0) invert(1); }

.auth-tagline h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.auth-tagline p { color: rgba(255,255,255,0.75); font-size: 0.95rem; }

.auth-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
}
.auth-perks li i {
  font-size: 1.1rem;
  color: #D4A96A;
  flex-shrink: 0;
}

.auth-stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.auth-stat h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: #D4A96A;
}
.auth-stat p { font-size: 0.78rem; margin: 0; color: rgba(255,255,255,0.65); }

/* RIGHT PANEL */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
}

.auth-box {
  width: 100%;
  max-width: 460px;
}

.auth-nav-links {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--kaya-border);
  margin-bottom: 28px;
}
.auth-nav-link {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  color: var(--kaya-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.auth-nav-link.active, .auth-nav-link:hover {
  color: var(--kaya-primary);
  border-bottom-color: var(--kaya-primary);
}

.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--kaya-dark);
  margin-bottom: 6px;
}
.auth-sub { color: var(--kaya-muted); font-size: 0.9rem; margin-bottom: 24px; }

/* FIELDS */
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--kaya-dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-wrap input,
.field-wrap select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--kaya-border);
  border-radius: 10px;
  font-size: 0.92rem;
  background: var(--kaya-light);
  color: var(--kaya-dark);
  transition: border-color .2s;
  outline: none;
  appearance: none;
}
.field-wrap input:focus,
.field-wrap select:focus { border-color: var(--kaya-primary); background: #fff; }

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--kaya-muted);
  font-size: 1rem;
  pointer-events: none;
}

.pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--kaya-muted);
  cursor: pointer;
  font-size: 1rem;
}

/* Strength bar */
.strength-bar { height: 4px; background: var(--kaya-border); border-radius: 99px; overflow: hidden; }
.strength-fill { height: 100%; width: 0; transition: all .3s; border-radius: 99px; }
.strength-label { font-size: 0.75rem; color: var(--kaya-muted); }

/* Checkbox */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  color: var(--kaya-muted);
}
.check-row a { color: var(--kaya-primary); }
.check-row input[type="checkbox"] { margin-top: 3px; accent-color: var(--kaya-primary); }

/* Submit button */
.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #8B6F47, #5C3D2E);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
  text-align: center;
  text-decoration: none;
  display: block;
}
.btn-auth:hover { opacity: 0.9; color: #fff; }

/* Divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--kaya-muted);
  font-size: 0.85rem;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--kaya-border);
}

/* Social / OTP btn */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--kaya-border);
  border-radius: 10px;
  background: #fff;
  color: var(--kaya-dark);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s;
  margin-bottom: 10px;
}
.social-btn:hover { border-color: var(--kaya-primary); color: var(--kaya-primary); }

.auth-switch { text-align: center; font-size: 0.88rem; color: var(--kaya-muted); margin-top: 20px; }
.auth-switch a { color: var(--kaya-primary); font-weight: 600; text-decoration: none; }
.forgot-link { font-size: 0.8rem; color: var(--kaya-primary); text-decoration: none; }

/* Icons */
.auth-icon-wrap {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #8B6F47, #5C3D2E);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  margin-bottom: 16px;
}

/* Success / Error circles */
.success-circle {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #48bb78, #276749);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem;
  margin: 0 auto;
}
.success-circle.big-success { width: 90px; height: 90px; font-size: 2.6rem; }
.error-circle {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, #fc8181, #c53030);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem;
  margin: 0 auto;
}

/* Info box */
.info-box {
  background: #FFF8F0;
  border: 1px solid #F6AD55;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.88rem;
  color: var(--kaya-dark);
}

/* OTP boxes */
.otp-input-group { display: flex; gap: 10px; justify-content: center; }
.otp-box {
  width: 52px; height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid var(--kaya-border);
  border-radius: 10px;
  outline: none;
  color: var(--kaya-dark);
  transition: border-color .2s;
}
.otp-box:focus { border-color: var(--kaya-primary); }

/* Resend */
.resend-link { color: var(--kaya-primary); font-weight: 600; text-decoration: none; }

/* Welcome cards */
.welcome-cards { display: flex; gap: 14px; justify-content: center; }
.welcome-card {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px;
  border: 1.5px solid var(--kaya-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--kaya-dark);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all .2s;
}
.welcome-card i { font-size: 1.6rem; color: var(--kaya-primary); }
.welcome-card:hover { border-color: var(--kaya-primary); background: #FDF8F4; }

/* Responsive */
@media (max-width: 768px) {
  .auth-wrapper { flex-direction: column; }
  .auth-left { padding: 30px 24px; flex: none; }
  .auth-right { padding: 30px 16px; }
  .auth-stats { gap: 14px; }
  .field-row-2 { grid-template-columns: 1fr; gap: 0; }
  .otp-box { width: 44px; height: 50px; font-size: 1.3rem; }
  .welcome-cards { flex-direction: column; }
}
