/* =========================================================
   Tech4U — Auth pages
   ========================================================= */
:root {
  --brand-700: #4338ca;
  --brand-600: #4f46e5;
  --brand-500: #6366f1;
  --brand-100: #eef2ff;
  --ink: #0b1220;
  --ink-soft: #1e293b;
  --muted: #64748b;
  --line: #e6e9f2;
  --gradient: linear-gradient(120deg, #4f46e5 0%, #6366f1 45%, #06b6d4 100%);
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font);
  background: #f6f7fc;
  color: var(--ink-soft);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--brand-600);
}

a:hover {
  color: var(--brand-700);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: 100vh;
}

/* ================= Form side ================= */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
  overflow-y: auto;
}

.auth-form-wrap {
  width: 100%;
  max-width: 560px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.auth-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.3);
}

.auth-brand span span {
  color: var(--brand-600);
}

.auth-head {
  margin-bottom: 26px;
}

.auth-head h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-head p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ================= Form ================= */
.auth-form {
  display: grid;
  gap: 16px;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.auth-field .req {
  color: #ef4444;
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fafbff;
  border-radius: 13px;
  transition: all 0.2s ease;
}

.auth-input:focus-within {
  background: #fff;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.auth-input > i {
  padding: 0 4px 0 15px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.auth-input input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  padding: 13px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}

.auth-input input::placeholder {
  color: #a8b0c2;
}

.auth-eye {
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: 0 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-eye:hover {
  color: var(--brand-600);
}

.auth-hint {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 5px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.83rem;
}

.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}

.auth-check input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brand-600);
  flex-shrink: 0;
}

.auth-terms {
  line-height: 1.55;
}

.auth-link {
  font-weight: 600;
  color: var(--brand-600);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.78rem;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.btn {
  border-radius: 13px;
  font-weight: 700;
  padding: 11px 20px;
  font-size: 0.92rem;
  border: 0;
  transition: all 0.2s ease;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.98rem;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.35);
}

.btn-light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-light:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
}

.auth-outline-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-demo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--brand-100);
  color: #3730a3;
  font-size: 0.8rem;
}

.auth-demo i {
  margin-top: 2px;
}

.auth-demo strong {
  display: block;
  font-size: 0.82rem;
}

.auth-demo span {
  color: #4f46e5;
  font-weight: 600;
}

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 20px;
}

.auth-switch a {
  font-weight: 700;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--muted);
  font-weight: 600;
}

.auth-footer a:hover {
  color: var(--brand-600);
}

/* ================= Alerts ================= */
.site-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.84rem;
  margin-bottom: 18px;
}

.site-alert.alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.site-alert.alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

.site-alert.alert-info {
  background: #eff6ff;
  color: #1e40af;
}

.site-alert .btn-close {
  margin-left: auto;
  font-size: 0.65rem;
}

/* ================= Visual side ================= */
.auth-visual {
  position: relative;
  background-image: url("/images/banner3.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  color: #fff;
  overflow: hidden;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 12, 24, 0.97) 0%,
    rgba(26, 23, 82, 0.93) 45%,
    rgba(5, 78, 97, 0.9) 100%
  );
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.auth-visual-content h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.auth-visual-content > p {
  color: #cbd5e1;
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 28px;
}

.auth-features {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.auth-feature > i {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(99, 102, 241, 0.35);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #c7d2fe;
  flex-shrink: 0;
}

.auth-feature strong {
  display: block;
  font-size: 0.86rem;
  color: #fff;
}

.auth-feature span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.auth-visual-stats {
  display: flex;
  gap: 34px;
}

.auth-visual-stats strong {
  display: block;
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.2;
}

.auth-visual-stats span {
  font-size: 0.72rem;
  color: #94a3b8;
}

/* ================= Responsive ================= */
@media (max-width: 1199px) {
  .auth-visual {
    padding: 40px;
  }
}

@media (max-width: 991px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-side {
    min-height: 100vh;
    padding: 32px 20px;
  }
}

@media (max-width: 575px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }

  .auth-head h1 {
    font-size: 1.55rem;
  }

  .auth-form-side {
    padding: 24px 16px;
  }

  .auth-brand {
    margin-bottom: 24px;
  }
}
