/* public_html/V2/css/auth.css */

/* ---------- Theme tokens ---------- */
:root {
  --bg: #eef2f7;
  --card: rgba(255, 255, 255, 0.92);
  --card-solid: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;

  --primary: #2896e5;      /* your dashboard blue */
  --primary-dark: #1b6fb0;

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.12);
  --shadow-soft: 0 10px 22px rgba(2, 6, 23, 0.10);

  --radius: 18px;
  --radius-sm: 12px;

  --focus: 0 0 0 4px rgba(40, 150, 229, 0.22);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

body {
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(40,150,229,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(40,150,229,0.10), transparent 55%),
    radial-gradient(800px 500px at 40% 100%, rgba(15,23,42,0.06), transparent 60%),
    var(--bg);
}

/* ---------- Layout ---------- */
.auth-wrap {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 22px;
}

.auth-card {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}

/* ---------- Left panel (brand/info) ---------- */
.auth-left {
  border-radius: var(--radius);
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(40,150,229,0.18), rgba(255,255,255,0.85)),
    var(--card);
  border: 1px solid rgba(40,150,229,0.18);
  box-shadow: var(--shadow-soft);
}

/* ---------- Brand Header (Improved) ---------- */
.brand-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 10px;
}

.brand-icon {
  width: 95px;
  height: 95px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.18),
    0 0 0 6px rgba(40,150,229,0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}

.brand-icon:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(2, 6, 23, 0.22),
    0 0 0 8px rgba(40,150,229,0.20);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

/* Adjust title spacing for larger icon */
.brand-title h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: 0.6px;
}

.brand-title p {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}


.feature-list {
  margin: 18px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.06);
}

.bullet {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(40,150,229,0.9);
  margin-top: 4px;
  box-shadow: 0 8px 16px rgba(40,150,229,0.25);
}

.feature-list .txt {
  font-size: 13px;
  color: #374151;
  line-height: 1.25rem;
}

.footer-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Right panel (form) ---------- */
.auth-right {
  border-radius: var(--radius);
  padding: 22px;
  background: var(--card-solid);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-right h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.auth-right .sub {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.form-row {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

label {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.18);
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  outline: none;
}

.input:focus {
  border-color: rgba(40,150,229,0.70);
  box-shadow: var(--focus);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,245,255,.92));
  color: #0f172a;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.10);
  transition: transform .08s ease, box-shadow .12s ease, filter .12s ease;
  user-select: none;
}

.btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.14);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: 0 8px 14px rgba(2, 6, 23, 0.12);
}

.btn.primary {
  background: linear-gradient(180deg, rgba(40,150,229,.25), rgba(40,150,229,.12));
  border-color: rgba(40,150,229,.28);
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.ghost {
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.10);
  box-shadow: none;
}

.btn.linkish {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Error banner ---------- */
.alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(217, 83, 79, 0.25);
  background: rgba(217, 83, 79, 0.10);
  color: #8b1a1a;
  font-weight: 800;
  font-size: 13px;
}

/* ---------- Loader (optional override to match theme) ---------- */
.loading-screen {
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
}

.loader-circle {
  border-top-color: var(--primary);
}
