@import url('https://fonts.googleapis.com/css2?family=family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

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

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

html { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f6f7;
  color: #2c2f30;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Layout ─────────────────────────────────────────────────────── */
.auth-page { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

/* ── Left panel ─────────────────────────────────────────────────── */
.auth-left {
  display: none;
  width: 50%;
  background: #0c0f10;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 64px;
  color: #fff;
  flex-shrink: 0;
  height: 100%;
}
@media (min-width: 1024px) { .auth-left { display: flex; } }

.auth-left-glow-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(252,128,25,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left-glow-2 {
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(252,128,25,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.auth-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fc8019 0%, #ffaa5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-brand-icon .material-symbols-outlined {
  font-size: 20px;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.auth-brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.auth-brand-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
}
.auth-mobile-logo-img {
  height: 34px;
  width: auto;
}

.auth-left-body { position: relative; z-index: 1; }
.auth-left-headline {
  font-family: 'Inter', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
  max-width: 380px;
}
.auth-left-sub {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
}

.auth-left-footer {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}
.auth-left-footer a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.15s; }
.auth-left-footer a:hover { color: #fff; }

/* ── Right panel ─────────────────────────────────────────────────── */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 32px;
  background: #f5f6f7;
  overflow-y: auto;
  height: 100%;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Mobile logo */
.auth-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
@media (min-width: 1024px) { .auth-mobile-logo { display: none; } }
.auth-mobile-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fc8019 0%, #ffaa5c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-mobile-logo-icon .material-symbols-outlined {
  font-size: 24px;
  color: #fff;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.auth-form-heading { margin-bottom: 28px; }
.auth-form-title {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #2c2f30;
  margin-bottom: 6px;
  line-height: 1.1;
}
.auth-form-sub {
  font-size: 15px;
  color: #595c5d;
  line-height: 1.6;
}

.auth-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #595c5d;
  letter-spacing: 0.01em;
  padding-left: 4px;
}
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #595c5d;
  font-size: 20px !important;
  transition: color 0.15s;
}
.auth-input-wrap:focus-within .auth-input-icon { color: #fc8019; }
.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 48px;
  background: rgba(218,221,223,0.5);
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #2c2f30;
  transition: box-shadow 0.2s, background 0.2s;
}
.auth-input::placeholder { color: #abadae; }
.auth-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(252,128,25,0.3);
  background: #ffffff;
}
.auth-input-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #595c5d;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s;
}
.auth-input-toggle:hover { color: #fc8019; }
.auth-input-toggle .material-symbols-outlined { font-size: 20px !important; }
.auth-input.has-toggle { padding-right: 48px; }

.auth-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #fc8019 0%, #ffaa5c 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(252,128,25,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 20px;
}
.auth-submit:hover { transform: scale(1.015); box-shadow: 0 6px 20px rgba(252,128,25,0.4); }
.auth-submit:active { transform: scale(0.98); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.auth-divider-line { flex: 1; height: 1px; background: rgba(171,173,174,0.2); }
.auth-divider-label { font-size: 12px; font-weight: 600; color: #abadae; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }

.auth-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 32px; }
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  background: #eff1f2;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #2c2f30;
  cursor: pointer;
  transition: background 0.15s;
}
.auth-social-btn:hover { background: #e0e3e4; }
.auth-social-btn svg { width: 18px; height: 18px; }

.auth-footer-link {
  text-align: center;
  font-size: 15px;
  color: #595c5d;
}
.auth-footer-link a {
  color: #fc8019;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  transition: text-decoration 0.1s;
}
.auth-footer-link a:hover { text-decoration: underline; text-underline-offset: 3px; }

.auth-message {
  font-size: 14px;
  color: #b31b25;
  min-height: 20px;
  margin-bottom: 8px;
  text-align: center;
}

/* ── Remember me + Forgot password row ─────────────────────────── */
.auth-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  margin-bottom: 28px;
}
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.auth-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #abadae;
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.auth-remember input[type="checkbox"]:checked {
  background: #fc8019;
  border-color: #fc8019;
}
.auth-remember input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.auth-remember-label {
  font-size: 14px;
  font-weight: 500;
  color: #595c5d;
  user-select: none;
}
.auth-forgot-link {
  font-size: 14px;
  font-weight: 600;
  color: #fc8019;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.auth-forgot-link:hover { opacity: 0.75; text-decoration: underline; text-underline-offset: 3px; }

/* ── Forgot password view ───────────────────────────────────────── */
.auth-forgot-view { display: none; flex-direction: column; }
.auth-forgot-view.active { display: flex; }
.auth-login-view { display: flex; flex-direction: column; }
.auth-login-view.hidden { display: none; }

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #595c5d;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.auth-back-btn:hover { color: #2c2f30; }
.auth-back-btn .material-symbols-outlined { font-size: 18px !important; }

.auth-success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 16px;
  text-align: center;
  margin-bottom: 24px;
}
.auth-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16,185,129,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-success-icon .material-symbols-outlined {
  font-size: 24px !important;
  color: #059669;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.auth-success-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #2c2f30;
}
.auth-success-sub { font-size: 13px; color: #595c5d; line-height: 1.6; max-width: 300px; }
