*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #000000;
  --bg-panel: #0c0c0c;
  --bg-input: #111111;
  --border:   rgba(255,255,255,0.08);
  --border-h: rgba(255,255,255,0.16);
  --text:     #ffffff;
  --text-2:   #b0b0b0;
  --text-3:   #555555;
  --accent:   #ffffff;
  --r:        12px;
  --r-sm:     8px;
  --font:     'Sora', 'Inter', system-ui, sans-serif;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ════════════════════════════
   SHELL — two columns
════════════════════════════ */
.login-shell {
  display: grid;
  grid-template-columns: 1fr 460px;
  height: 100vh;
  height: 100dvh;
}

/* ════════════════════════════
   LEFT — visual
════════════════════════════ */
.login-visual {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-hero {
  width: 88%;
  max-width: 580px;
  height: auto;
  object-fit: contain;
  animation: heroBreathe 4.5s ease-in-out infinite;
  pointer-events: none;
  position: relative; z-index: 1;
}

@keyframes heroBreathe {
  0%, 100% { transform: scale(1);    opacity: .72; }
  50%       { transform: scale(1.06); opacity: 1;   }
}

.visual-tagline {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 300;
  color: var(--text-3); letter-spacing: .1em;
  white-space: nowrap; z-index: 2;
}

/* ════════════════════════════
   RIGHT — auth panel
════════════════════════════ */
.login-panel {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: fadeUp .5s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}

.auth-icon {
  width: 36px; height: 36px;
  object-fit: contain;
}

.auth-brand {
  font-family: 'Garet', 'Sora', sans-serif;
  font-size: 14px; font-weight: 600;
  letter-spacing: .13em; color: var(--text);
}

/* Heading */
.auth-title {
  font-size: 24px; font-weight: 700;
  letter-spacing: -.03em; margin-bottom: 6px;
}

.auth-sub {
  font-size: 13px; color: var(--text-2);
  font-weight: 300; margin-bottom: 28px; line-height: 1.6;
}

/* Google button */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border-h);
  border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font);
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
  margin-bottom: 20px;
}
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-google:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
}

/* Divider */
.auth-divider {
  position: relative; text-align: center; margin-bottom: 20px;
}
.auth-divider::before {
  content: '';
  position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.auth-divider span {
  position: relative; background: var(--bg-panel);
  padding: 0 12px; font-size: 11px;
  color: var(--text-3); letter-spacing: .08em;
}

/* Form */
.auth-form {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 18px;
}

.field-group { display: flex; flex-direction: column; gap: 6px; }

.field-label-row {
  display: flex; align-items: center; justify-content: space-between;
}

.field-label {
  font-size: 12px; font-weight: 500;
  color: var(--text-2); letter-spacing: .02em;
}

.field-link {
  font-size: 11px; color: var(--text-3);
  text-decoration: none; transition: color .15s;
}
.field-link:hover { color: var(--text-2); }

.field-input-wrap { position: relative; }

.field-input {
  display: block; width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text); font-family: var(--font);
  font-size: 14px; font-weight: 300;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder { color: var(--text-3); }
.field-input:focus {
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 0 0 3px rgba(255,255,255,.05);
}
.field-input-wrap .field-input { padding-right: 42px; }

.field-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--text-3);
  cursor: pointer; transition: color .15s;
}
.field-eye:hover { color: var(--text-2); }
.field-eye svg { width: 14px; height: 14px; }

/* Primary button */
.btn-primary {
  width: 100%; padding: 11px 18px;
  background: #fff; color: #000;
  border: none; border-radius: var(--r-sm);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; letter-spacing: -.01em;
  transition: background .15s, box-shadow .15s;
  margin-top: 4px;
}
.btn-primary:hover {
  background: #e8e8e8;
  box-shadow: 0 4px 20px rgba(255,255,255,.12);
}

/* Toggle mode */
.auth-switch {
  text-align: center; font-size: 13px; color: var(--text-3);
  margin-bottom: 20px;
}
.auth-switch-btn {
  background: transparent; border: none;
  color: var(--text-2); font-family: var(--font);
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .15s;
}
.auth-switch-btn:hover { color: var(--text); }

/* Terms */
.auth-terms {
  text-align: center; font-size: 11px;
  color: var(--text-3); line-height: 1.7;
}
.auth-terms a { color: var(--text-3); transition: color .15s; }
.auth-terms a:hover { color: var(--text-2); }

/* Utility */
.hidden { display: none !important; }

/* Responsive */
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-panel { border-left: none; }
}
