/* =====================================================
   AUTH PAGE — Modern Split-Screen Login
   ===================================================== */

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

body.auth-page {
  margin: 0;
  padding: 0;
  font-family: "Nunito", "Open Sans", sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
}

/* WRAPPER */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.auth-left {
  flex: 0 0 45%;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 45%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

/* decorative circles */
.auth-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  top: -120px;
  right: -120px;
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.auth-left-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.auth-brand-logo {
  height: 44px;
  margin-bottom: 40px;
  display: block;
}

.auth-left-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin: 0 0 14px;
}

.auth-left-sub {
  font-size: .97rem;
  color: rgba(255,255,255,.80);
  line-height: 1.65;
  margin: 0 0 32px;
}

.auth-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-features li {
  font-size: .93rem;
  color: rgba(255,255,255,.90);
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.auth-stats-row {
  display: flex;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.auth-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-stat-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.auth-stat-label {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .04em;
}

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

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

.auth-form-logo {
  margin-bottom: 32px;
}

.auth-logo-sm {
  height: 40px;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.auth-subtitle {
  font-size: .93rem;
  color: #64748b;
  margin: 0 0 28px;
}

/* FIELDS */
.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  font-size: .83rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .93rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  height: 48px;
}

.auth-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
  background: #fff;
}

.auth-input::placeholder { color: #94a3b8; }

/* REMEMBER + FORGOT ROW */
.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .86rem;
  color: #64748b;
  cursor: pointer;
}

.auth-remember input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #2563eb;
}

.auth-forgot {
  font-size: .86rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-forgot:hover { text-decoration: underline; }

/* SUBMIT BUTTON */
.auth-btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-bottom: 16px;
}

.auth-btn-submit:hover {
  opacity: .92;
  transform: translateY(-1px);
  color: #fff;
}

/* SIGN UP LINK */
.auth-signup-text {
  text-align: center;
  font-size: .9rem;
  color: #64748b;
  margin-top: 20px;
}

.auth-signup-text a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

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

/* BUTTON LOADING SPINNER */
.btn-loading {
  color: transparent !important;
  pointer-events: none;
  position: relative;
}

.btn-loading:after {
  content: '';
  animation: loader 500ms infinite linear;
  border: 2px solid #fff;
  border-radius: 50%;
  border-right-color: transparent !important;
  border-top-color: transparent !important;
  display: block;
  height: 1.4em;
  width: 1.4em;
  position: absolute !important;
  left: calc(50% - .7em);
  top: calc(50% - .7em);
}

@keyframes loader {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* GOOGLE SIGN IN BUTTON */
.gsi-material-button-icon {
  vertical-align: bottom;
  display: inline-block;
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { background: #f1f5f9; }
  .auth-form-box {
    background: #fff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
  }
}

@media (max-width: 480px) {
  .auth-form-box { padding: 28px 20px; }
  .auth-title { font-size: 1.4rem; }
}

/* ── SIGNUP EXTRAS ── */
.auth-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .88rem;
  color: #64748b;
  cursor: pointer;
  margin-bottom: 20px;
  line-height: 1.5;
}

.auth-terms input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #2563eb;
  flex-shrink: 0;
}

.auth-terms a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

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

@media (max-width: 480px) {
  .auth-two-col { grid-template-columns: 1fr; gap: 0; }
}
