/* auth.css — Exspostar Login & Register */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Shippori+Mincho:wght@400;500;600&family=Great+Vibes&family=Poppins:wght@300;400;500&display=swap');

:root {
  --wood-deepest: #1a1008;
  --wood-deep: #241508;
  --wood-mid: #2e1c0e;
  --wood-warm: #3a2212;
  --charcoal-dark: #1c1c1c;
  --charcoal-mid: #2a2a2a;
  --amber: #c8922a;
  --amber-light: #d4af37;
  --amber-pale: #e8c97a;
  --amber-glow: rgba(200, 146, 42, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--wood-deepest);
  color: #e8dcc8;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== BACKGROUND ===== */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(58, 34, 18, 0.8) 0%, transparent 70%), radial-gradient(ellipse 40% 30% at 20% 80%, rgba(200, 146, 42, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(200, 146, 42, 0.04) 0%, transparent 60%);
}

.bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, transparent 0px, transparent 58px, rgba(200, 146, 42, 0.025) 59px, transparent 60px), repeating-linear-gradient(0deg, transparent 0px, transparent 58px, rgba(200, 146, 42, 0.015) 59px, transparent 60px);
}

/* ===== CORNER DECORATIONS ===== */
.corner {
  position: fixed;
  width: 50px;
  height: 50px;
  z-index: 1;
  pointer-events: none;
}

.corner.tl {
  top: 28px;
  left: 28px;
  border-top: 1px solid rgba(200, 146, 42, 0.25);
  border-left: 1px solid rgba(200, 146, 42, 0.25);
}
.corner.tr {
  top: 28px;
  right: 28px;
  border-top: 1px solid rgba(200, 146, 42, 0.25);
  border-right: 1px solid rgba(200, 146, 42, 0.25);
}
.corner.bl {
  bottom: 28px;
  left: 28px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.25);
  border-left: 1px solid rgba(200, 146, 42, 0.25);
}
.corner.br {
  bottom: 28px;
  right: 28px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.25);
  border-right: 1px solid rgba(200, 146, 42, 0.25);
}

/* ===== CENTER WRAPPER ===== */
.auth-center {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  min-height: 100vh;
}

/* ===== AUTH CARD ===== */
.auth-card {
  background: linear-gradient(160deg, rgba(46, 28, 14, 0.85) 0%, rgba(26, 16, 8, 0.95) 100%);
  border: 1px solid rgba(200, 146, 42, 0.12);
  border-radius: 4px;
  padding: 50px 48px;
  width: 100%;
  max-width: 480px;
  backdrop-filter: blur(20px);
  animation: cardIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.auth-card--wide {
  max-width: 780px;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== LOGO ===== */
.auth-logo {
  display: block;
  font-family: 'Great Vibes', cursive;
  font-size: 40px;
  color: #d4af37;
  text-decoration: none;
  text-align: center;
  text-shadow: 0 2px 20px rgba(212, 175, 55, 0.25);
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.auth-logo:hover {
  color: var(--amber-pale);
}

.auth-tagline {
  font-family: 'Shippori Mincho', serif;
  font-size: 9px;
  letter-spacing: 8px;
  color: rgba(200, 146, 42, 0.45);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
}

/* ===== DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(200, 146, 42, 0.2), transparent);
}

.divider-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(200, 146, 42, 0.4);
}

/* ===== TITLES ===== */
.auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: #c8a96e;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 12px;
  color: rgba(232, 220, 200, 0.35);
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}

/* ===== ALERTS ===== */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 2px;
  font-size: 13px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.alert-error {
  background: rgba(220, 80, 80, 0.08);
  border: 1px solid rgba(220, 80, 80, 0.25);
  color: rgba(240, 160, 160, 0.9);
}

.alert-success {
  background: rgba(80, 180, 80, 0.08);
  border: 1px solid rgba(80, 180, 80, 0.25);
  color: rgba(140, 220, 140, 0.9);
}

.alert-link {
  margin-left: auto;
  color: #d4af37;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
}

.alert-link:hover {
  color: var(--amber-pale);
}

/* ===== FORM ===== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(200, 146, 42, 0.55);
  text-transform: uppercase;
}

.required {
  color: rgba(220, 80, 80, 0.7);
  margin-left: 2px;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  font-size: 13px;
  color: rgba(200, 146, 42, 0.35);
  pointer-events: none;
  z-index: 1;
}

.field-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: rgba(10, 6, 2, 0.55) !important;
  border: 1px solid rgba(200, 146, 42, 0.14);
  border-radius: 2px;
  color: #e8d5b0 !important;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
  outline: none;
  appearance: none;
  caret-color: #d4af37;
}

.field-input:focus {
  border-color: rgba(200, 146, 42, 0.45);
  background: rgba(20, 12, 4, 0.7);
}

.field-input:-webkit-autofill,
.field-input:-webkit-autofill:hover,
.field-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px rgba(10, 6, 2, 0.55) inset;
  -webkit-text-fill-color: #e8d5b0;
  transition: background-color 5000s ease-in-out 0s;
}

.field-input::placeholder {
  color: rgba(232, 220, 200, 0.18);
}

/* Select */
.field-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(200,146,42,0.4)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-select option {
  background: #1a1008;
  color: #e8d5b0;
}

/* Toggle password button */
.toggle-pass {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(200, 146, 42, 0.35);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  transition: color 0.2s ease;
  z-index: 1;
}

.toggle-pass:hover {
  color: rgba(200, 146, 42, 0.7);
}

/* Password strength */
.pass-strength {
  font-size: 11px;
  letter-spacing: 0.5px;
  min-height: 16px;
  transition: color 0.3s ease;
}

.match-hint {
  font-size: 11px;
  letter-spacing: 0.3px;
  min-height: 16px;
}

/* Terms checkbox */
.terms-wrap {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(232, 220, 200, 0.45);
  line-height: 1.6;
}

.checkbox-label input[type='checkbox'] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(200, 146, 42, 0.3);
  border-radius: 1px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-label input:checked + .checkbox-custom {
  background: var(--amber);
  border-color: var(--amber);
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #1a1008;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* ===== SUBMIT BUTTON ===== */
.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #c8922a, #d4af37);
  color: #1a1008;
  border: none;
  border-radius: 2px;
  font-family: 'Shippori Mincho', serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.btn-auth:hover {
  background: linear-gradient(135deg, #d4af37, #e8c97a);
  box-shadow: 0 4px 24px rgba(200, 146, 42, 0.22);
}

.btn-auth i {
  font-size: 13px;
  transition: transform 0.3s ease;
}

.btn-auth:hover i {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.auth-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(200, 146, 42, 0.08);
  font-size: 13px;
  color: rgba(232, 220, 200, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.auth-link {
  color: var(--amber-light);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--amber-pale);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .auth-card {
    padding: 36px 24px;
  }
  .auth-card--wide {
    padding: 36px 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .corner {
    display: none;
  }
  .auth-title {
    font-size: 26px;
  }
  .auth-logo {
    font-size: 34px;
  }
}

@media (max-width: 400px) {
  .auth-center {
    padding: 20px 12px;
  }
  .auth-card {
    padding: 30px 18px;
  }
}
/* Export info section title */
.field-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Shippori Mincho', serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #d4af37;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.2);
  margin-top: 4px;
}

.field-section-title i {
  font-size: 12px;
}
