.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* LEFT PANEL */
.auth-left {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124,58,237,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(6,182,212,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.auth-left-logo-icon {
  width: 36px; height: 36px;
  object-fit: cover;
}

.auth-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-tagline {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.auth-tagline-accent {
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline-sub {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 48px;
}

/* Mini timeline preview */
.auth-timeline-preview {
  position: relative;
  padding: 20px 0;
}

.auth-preview-line {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  position: relative;
  margin: 20px 0;
}

.auth-preview-events {
  display: flex;
  gap: 40px;
  overflow: hidden;
}

.auth-preview-event {
  flex-shrink: 0;
  text-align: center;
}

.auth-preview-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin: 0 auto 8px;
  border: 2px solid var(--bg2);
}

.auth-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  width: 130px;
}

.auth-preview-card-date {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.auth-preview-card-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text2);
}

.auth-feature-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* RIGHT PANEL */
.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
  position: relative;
}

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

.auth-card-header {
  margin-bottom: 36px;
}

.auth-card-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.auth-card-sub {
  font-size: 14px;
  color: var(--text2);
}

.auth-card-sub a {
  color: var(--accent3);
  font-weight: 500;
}

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

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text3);
  font-size: 12px;
}

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

.auth-social-btn {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.auth-social-btn:hover {
  background: var(--surface2);
  border-color: var(--border2);
}

.auth-social-icon {
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.auth-form .form-input {
  background: var(--surface);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text3);
  margin-top: 24px;
}

.auth-footer-text a {
  color: var(--text2);
  font-weight: 500;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--accent3);
  margin-top: -12px;
  margin-bottom: 20px;
}

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

.password-wrap {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

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

.terms-text {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}

.terms-text a { color: var(--text2); }

/* Error / success */
.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}

.form-error.show { display: block; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 24px; }
}
