/* ===== ZA-FARM-KH — Auth Pages (Dark & Gold Theme) ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans Khmer', system-ui, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background: #0a0a0a;
  color: #f0ece4;
}

/* ===== AUTH PAGE LAYOUT ===== */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ===== LEFT VISUAL PANEL ===== */
.auth-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(212,160,23,0.15) 0%, #0a0a0a 100%);
  border-right: 1px solid #2a2a2a;
}
.visual-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212,160,23,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(212,160,23,.05) 0%, transparent 40%);
}
.visual-bg::before {
  content: "";
  position: absolute; top: -50%; right: -30%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(212,160,23,.03);
}
.visual-bg::after {
  content: "";
  position: absolute; bottom: -40%; left: -20%;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(212,160,23,.02);
}

.visual-content {
  position: relative; z-index: 2;
  color: #f0c840;
  max-width: 360px;
}
.visual-logo {
  width: 64px; height: 64px; border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d4a017;
  margin-bottom: 24px;
  background: #111;
}
.visual-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.visual-content h1 {
  font-size: 28px; font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -.3px;
  background: linear-gradient(135deg, #f0c840, #d4a017);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.visual-content > p {
  font-size: 15px; color: #d4cfc4;
  line-height: 1.6; margin-bottom: 32px;
}

.visual-features { display: flex; flex-direction: column; gap: 14px; }
.vf-item {
  display: flex; align-items: center; gap: 12px;
  background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px; font-weight: 500;
  color: #f0ece4;
}
.vf-icon { font-size: 18px; }

/* ===== RIGHT FORM PANEL ===== */
.auth-form-panel {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 32px;
  background: #111;
}
.auth-form-wrap {
  width: 100%; max-width: 400px;
}

.auth-header { margin-bottom: 28px; }
.auth-header h2 {
  font-size: 24px; font-weight: 800;
  color: #f0c840; margin-bottom: 6px;
}
.auth-header p {
  font-size: 14px; color: #8a8070;
  line-height: 1.5;
}
.reset-icon {
  font-size: 40px; margin-bottom: 12px;
}

/* ===== GOOGLE BUTTON ===== */
.google-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: #f0ece4;
  cursor: pointer;
  transition: all .15s ease;
}
.google-btn:hover {
  background: #222;
  border-color: #d4a017;
}
.google-btn:active { transform: scale(.99); }

/* ===== DIVIDER ===== */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: #2a2a2a;
}
.divider span {
  font-size: 12px; color: #8a8070; font-weight: 500;
}

/* ===== INPUT GROUPS ===== */
.input-group { margin-bottom: 16px; }
.input-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: #d4cfc4; margin-bottom: 6px;
}
.label-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.label-row label { margin-bottom: 0; }
.forgot-link {
  font-size: 12.5px; color: #d4a017; font-weight: 600;
  text-decoration: none;
}
.forgot-link:hover { color: #f0c840; text-decoration: underline; }

.input-wrap {
  position: relative; display: flex; align-items: center;
}
.input-icon {
  position: absolute; left: 14px;
  color: #8a8070; pointer-events: none;
}
.input-wrap input {
  width: 100%; padding: 12px 14px 12px 42px;
  font-size: 14px; font-family: inherit;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #1a1a1a;
  color: #f0ece4;
  transition: all .15s ease;
}
.input-wrap input:focus {
  outline: none;
  border-color: #d4a017;
  background: #222;
  box-shadow: 0 0 0 2px rgba(212, 160, 23, .2);
}
.input-wrap input::placeholder { color: #8a8070; }

.toggle-pass {
  position: absolute; right: 12px;
  background: none; border: none;
  color: #8a8070; cursor: pointer;
  display: grid; place-items: center;
  padding: 4px;
}
.toggle-pass:hover { color: #d4a017; }

.input-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.strength-bar {
  flex: 1; height: 4px; border-radius: 4px;
  background: #2a2a2a; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 4px;
  width: 0%; transition: all .3s ease;
}
.strength-fill.weak { width: 33%; background: #f87171; }
.strength-fill.medium { width: 66%; background: #fbbf24; }
.strength-fill.strong { width: 100%; background: #4ade80; }
.strength-text { font-size: 11px; color: #8a8070; font-weight: 500; }

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  width: 100%; padding: 13px 20px;
  background: linear-gradient(135deg, #f0c840, #d4a017);
  border: none; border-radius: 10px;
  color: #000; font-size: 15px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212, 160, 23, .2);
  transition: all .2s ease;
  margin-top: 8px;
}
.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, .3);
  opacity: 0.95;
}
.submit-btn:active { transform: translateY(0); }

/* ===== AUTH SWITCH ===== */
.auth-switch {
  text-align: center; margin-top: 20px;
  font-size: 13.5px; color: #8a8070;
}
.auth-switch a {
  color: #d4a017; font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { color: #f0c840; text-decoration: underline; }

/* ===== RESET INFO ===== */
.reset-info { margin-top: 24px; }
.info-card {
  display: flex; gap: 12px;
  background: rgba(212, 160, 23, 0.05);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 10px;
  padding: 14px 16px;
}
.info-icon { font-size: 20px; flex-shrink: 0; }
.info-card strong { display: block; font-size: 13px; color: #f0c840; margin-bottom: 4px; }
.info-card p { font-size: 12.5px; color: #d4cfc4; line-height: 1.5; margin: 0; }

/* ===== TOAST ===== */
.toast-msg {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #1a1a1a; color: #f0ece4;
  padding: 12px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 300;
  border: 1px solid #d4a017;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.toast-msg.error { border-color: #f87171; }
.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-form-panel {
    padding: 32px 20px;
    min-height: 100vh;
  }
}
@media (max-width: 480px) {
  .auth-form-wrap { max-width: 100%; }
  .input-row { grid-template-columns: 1fr; }
  .auth-header h2 { font-size: 20px; }
}
