/* === SIGNUP / LOGIN LAYOUT === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--grey-50);
  color: var(--grey-900);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

:root {
  --blue-900: #0a1f44;
  --blue-700: #1e3a8a;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-700: #334155;
  --grey-900: #0f172a;
  --accent: #06b6d4;
  --green: #10b981;
  --red: #ef4444;
}

.page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
@media (max-width: 900px) { .page { grid-template-columns: 1fr; } .side { display: none; } }

.form-side {
  background: var(--white);
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}
@media (max-width: 600px) { .form-side { padding: 30px 24px; } }
.form-wrapper { width: 100%; max-width: 460px; }

.logo { font-weight: 800; font-size: 24px; letter-spacing: -0.04em; color: var(--grey-900); text-decoration: none; display: flex; align-items: center; gap: 8px; margin-bottom: 50px; }
.logo-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; font-weight: 700; }
.logo-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 500; color: var(--blue-600); margin-left: 2px; }

/* Steps */
.steps-indicator { display: flex; gap: 8px; margin-bottom: 32px; }
.step-dot { flex: 1; height: 6px; background: var(--grey-200); border-radius: 999px; transition: background 0.3s; }
.step-dot.active { background: var(--blue-600); }
.step-dot.completed { background: var(--green); }
.step-meta { font-size: 13px; color: var(--grey-500); margin-bottom: 24px; font-weight: 500; }
.step-meta strong { color: var(--blue-600); }

h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 12px; }
.form-sub { font-size: 16px; color: var(--grey-500); margin-bottom: 32px; line-height: 1.5; }

/* Divider */
.divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--grey-400); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--grey-200); }

/* Fields */
.field-group { margin-bottom: 18px; }
.field-group.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--grey-700); margin-bottom: 8px; }
label .required { color: var(--red); margin-left: 2px; }
label .optional { color: var(--grey-400); margin-left: 6px; font-weight: 500; font-size: 12px; }

.input, .select { width: 100%; padding: 14px 16px; background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 12px; font-size: 16px; font-family: inherit; color: var(--grey-900); transition: all 0.2s; -webkit-appearance: none; appearance: none; }
.input:focus, .select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.input::placeholder { color: var(--grey-400); }

.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 46px; }
.input-with-icon .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--grey-400); pointer-events: none; }
.input-with-icon .icon svg { display: block; }

.field-hint { font-size: 13px; color: var(--grey-500); margin-top: 6px; }

/* Branche Picker */
.branche-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 6px; }
@media (max-width: 500px) { .branche-grid { grid-template-columns: 1fr 1fr; } }
.branche-card { padding: 16px 12px; background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; position: relative; }
.branche-card:hover { border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-1px); }
.branche-card input { display: none; }
.branche-card.selected { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.branche-card.selected::after { content: '✓'; position: absolute; top: 6px; right: 8px; width: 18px; height: 18px; background: var(--blue-600); color: white; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.branche-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.branche-label { font-size: 13px; font-weight: 600; color: var(--grey-900); }

/* Size Grid */
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .size-grid { grid-template-columns: 1fr; } }
.size-card { padding: 14px 16px; background: var(--white); border: 1.5px solid var(--grey-200); border-radius: 12px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.size-card:hover { border-color: var(--blue-500); background: var(--blue-50); }
.size-card input { display: none; }
.size-card.selected { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.size-text strong { display: block; font-size: 14px; font-weight: 700; color: var(--grey-900); }
.size-text span { font-size: 12px; color: var(--grey-500); }
.size-badge { padding: 2px 8px; background: var(--blue-100); color: var(--blue-700); border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* Checkbox */
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; cursor: pointer; user-select: none; }
.checkbox-row input { display: none; }
.checkbox-fake { width: 20px; height: 20px; border: 1.5px solid var(--grey-300); border-radius: 6px; flex-shrink: 0; margin-top: 1px; transition: all 0.2s; display: flex; align-items: center; justify-content: center; background: var(--white); }
.checkbox-row input:checked + .checkbox-fake { background: var(--blue-600); border-color: var(--blue-600); }
.checkbox-fake svg { width: 12px; height: 12px; stroke: white; stroke-width: 3; fill: none; opacity: 0; transition: opacity 0.2s; }
.checkbox-row input:checked + .checkbox-fake svg { opacity: 1; }
.checkbox-label { font-size: 14px; color: var(--grey-700); line-height: 1.5; }
.checkbox-label a { color: var(--blue-600); text-decoration: none; font-weight: 600; }

/* Buttons */
.btn-primary { width: 100%; background: var(--blue-600); color: var(--white); padding: 16px; border-radius: 12px; border: none; font-weight: 700; font-size: 16px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 1px 0 rgba(255, 255, 255, 0.2) inset; }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3); }
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-back { background: none; border: none; color: var(--grey-500); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-family: inherit; text-decoration: none; }
.btn-back:hover { color: var(--blue-600); background: var(--grey-100); }

.form-footer { margin-top: 24px; text-align: center; font-size: 14px; color: var(--grey-500); }
.form-footer a { color: var(--blue-600); font-weight: 600; text-decoration: none; }

/* Account Badge */
.account-badge { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #a7f3d0; border-radius: 12px; margin-bottom: 28px; }
.account-badge-icon { width: 36px; height: 36px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.account-badge-text { font-size: 13px; color: #065f46; line-height: 1.4; }
.account-badge-text strong { display: block; color: #064e3b; font-weight: 700; margin-bottom: 2px; }
.account-badge-text a { color: #065f46; text-decoration: underline; font-weight: 600; }

/* Error */
.error-msg { background: rgba(239, 68, 68, 0.08); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--red); padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; margin-bottom: 16px; display: none; align-items: center; gap: 10px; }
.error-msg.show { display: flex; }

/* Right Side Panel */
.side { background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%); color: var(--white); padding: 60px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.side::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent); -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black, transparent); }
.side::after { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: 0.15; pointer-events: none; }
.side > * { position: relative; z-index: 2; }
.side-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 24px; }
.side h2 { font-size: 38px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 16px; color: white; }
.side h2 .highlight { background: linear-gradient(120deg, var(--accent), #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.side-sub { font-size: 17px; color: rgba(255, 255, 255, 0.75); margin-bottom: 40px; line-height: 1.55; max-width: 440px; }

/* Benefits */
.benefits { list-style: none; margin-bottom: 40px; }
.benefits li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 16px; }
.benefit-check { width: 24px; height: 24px; background: rgba(6, 182, 212, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-check svg { width: 14px; height: 14px; stroke: var(--accent); stroke-width: 3; fill: none; }
.benefit-text strong { color: var(--white); }
.benefit-text { color: rgba(255, 255, 255, 0.85); }
.benefit-text small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 13px; margin-top: 2px; }

/* Testimonial */
.testimonial { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.08); padding: 24px; border-radius: 16px; margin-top: auto; }
.testimonial-stars { color: #fbbf24; letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, #fbbf24, #f59e0b); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 14px; }
.testimonial-meta strong { display: block; font-size: 14px; color: var(--white); }
.testimonial-meta span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
