:root {
  --bg: #080c14; --bg2: #0d1117; --bg3: #111827; --bg4: #1e293b;
  --border: #1e2d3d; --text: #e2e8f0; --text2: #94a3b8; --text3: #64748b;
  --cyan: #00d4ff; --purple: #7c3aed; --green: #10b981; --red: #ef4444;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Space Grotesk', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: inherit; text-decoration: none; }

.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-layout.simple { grid-template-columns: 1fr; }
.auth-layout.simple .auth-panel { max-width: 480px; margin: 0 auto; padding: 4rem 2rem; width: 100%; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 4rem 3rem; background: var(--bg2); }
.auth-brand { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--cyan); margin-bottom: 2rem; display: inline-block; }
.auth-brand span { color: var(--purple); }
.auth-panel h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.auth-sub { color: var(--text2); margin-bottom: 2rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text2); display: flex; justify-content: space-between; align-items: center; }
.label-link { color: var(--cyan); font-weight: 500; font-size: .8rem; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text);
  padding: .75rem 1rem; border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; outline: none; width: 100%;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,.1);
}
.btn-auth { background: linear-gradient(135deg, var(--cyan), var(--purple)); color: white; border: none; padding: .9rem; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s; margin-top: .25rem; }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,.3); }
.terms-note { font-size: .75rem; color: var(--text3); text-align: center; }
.auth-switch { margin-top: 1.5rem; text-align: center; color: var(--text2); font-size: .9rem; }
.auth-switch a { color: var(--cyan); font-weight: 600; }

.alert { padding: 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.alert-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }

.auth-visual { background: linear-gradient(135deg, #0d1117 0%, #111827 100%); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.auth-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(0,212,255,.08) 0%, transparent 70%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(124,58,237,.08) 0%, transparent 70%); }
.auth-visual-content { position: relative; max-width: 440px; padding: 3rem; }
.auth-visual-content h2 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; background: linear-gradient(135deg, #fff, var(--text2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.auth-visual-content p { color: var(--text2); line-height: 1.7; margin-bottom: 2rem; }
.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.auth-features div { background: rgba(255,255,255,.04); border: 1px solid var(--border); padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; color: var(--text2); font-weight: 500; }

@media (max-width: 768px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { padding: 2rem 1.5rem; min-height: 100vh; }
}
