/* ===== Login Page Styles ===== */
:root {
  --bg:#0f172a;
  --panel:#0b1220;
  --muted:#6b7280;
  --text:#e5e7eb;
  --brand:#6366f1;
  --brand2:#22d3ee;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:#f3f4f6;
    --panel:#ffffff;
    --muted:#6b7280;
    --text:#0b1220;
    --brand:#4f46e5;
    --brand2:#06b6d4;
  }
  body {
    background:linear-gradient(135deg,var(--bg),#e5e7eb)!important;
  }
}

* {
  box-sizing:border-box;
}

html, body {
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body {
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto;
  background:linear-gradient(135deg,var(--bg),#111827);
  color:var(--text);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.shell {
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:28px;
  width:min(100%,1100px);
  
  padding:24px;
  align-items:center;
}

.left-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  min-height: 520px;
  box-shadow: 0 8px 30px rgba(2,6,23,0.6);
  display: block;
}

.right-panel {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.hero {
  padding:8px 12px;
  border-radius:12px;
  background: transparent;
  box-shadow:none;
  text-align: center;
}

.brand {
  font-weight:700;
  font-size:22px;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.brand .dot {
  width:10px;
  height:10px;
  background: linear-gradient(45deg,var(--brand),var(--brand2));
  border-radius:50%;
}

.subtitle {
  color:var(--muted);
  font-size:14px;
}

/* Logo Link Styles */
.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease;
  margin: 0 auto;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.card {
  padding:24px;
  border-radius:16px;
  background:rgba(255,255,255,.03);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 30px rgba(0,0,0,.25);
}

label {
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-top:10px;
}

input[type=email], input[type=password], input[type=text], input[type=tel], input[type=search], textarea, select {
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1.5px solid rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  color:var(--text);
  margin-top:6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: border-color .12s ease, box-shadow .12s ease, transform .06s ease;
  font-size:15px;
  line-height:1.3;
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
  transform: translateZ(0);
}

@media (prefers-color-scheme: light) {
  input[type=email], input[type=password], input[type=text], textarea, select {
    border:1.25px solid rgba(0,0,0,0.12);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  }
}

.actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:12px 0;
}

.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:10px;
  padding:12px 14px;
  cursor:pointer;
  color:#0b1220;
  background:linear-gradient(90deg,var(--brand),var(--brand2));
  font-weight:600;
  width:100%;
}

.error {
  color:#fecaca;
  background:rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.3);
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:12px;
  font-size:14px;
}

@media (prefers-color-scheme: light) {
  .error {
    color:#dc2626;
    background:rgba(239,68,68,.2);
    border:1px solid rgba(239,68,68,.4);
    font-weight:500;
  }
}

.hstack {
  display:flex;
  gap:10px;
  align-items:center;
}

.muted {
  color:var(--muted);
  font-size:12px;
}

.stack {
  display:grid;
  gap:10px;
}

.password-field {
  position: relative;
}

.password-field input[type=password], .password-field input[type=text] {
  padding-right: 42px;
}

.password-field .toggle-password {
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
}

.password-field .toggle-password:hover {
  color: var(--text);
}

.password-field .toggle-password:focus {
  outline:none;
}

.password-field .toggle-password:focus-visible {
  outline:2px solid var(--brand);
  outline-offset:2px;
}

/* Remove all shadows from this login page only */
* {
  box-shadow: none !important;
}

/* Keep focus outlines accessible */
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Responsive adjustments for login two-column layout */
@media (max-width: 920px) {
  .shell {
    grid-template-columns: 1fr;
    padding:18px;
  }
  .left-image {
    min-height:220px;
    border-radius:12px;
    order:-1;
  }
  .right-panel {
    order:0;
  }
}
