/* =====================================================
   StableOSX – Setup CSS
   Aktivierung & Installation
===================================================== */
:root {
    --bg: #0E0C07; --bg-card: #1C1208; --border: #2C1F0E;
    --border-mid: #5A3E10; --gold: #C49A28; --gold-light: #E8BF5A;
    --text-primary: #F5E6C0; --text-muted: #8B6914; --text-dim: #5A3E10;
    --green: #1D9E75; --green-bg: #0D3D2A; --green-border: #1D9E7560;
    --red: #E24B4A; --red-bg: #2A0E0E; --red-border: #E24B4A60;
    --radius: 6px; --radius-lg: 10px;
    --font: Georgia,'Times New Roman',serif;
    --font-ui: system-ui,-apple-system,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
body.setup-page {
    margin:0; background:var(--bg); color:var(--text-primary);
    font-family:var(--font-ui); min-height:100vh;
    display:flex; align-items:center; justify-content:center;
    padding:24px 16px;
}
.setup-wrap { width:100%; max-width:540px; display:flex; flex-direction:column; gap:20px; }

/* Logo */
.setup-logo { display:flex; align-items:center; gap:12px; justify-content:center; }
.setup-logo-text { font-family:var(--font); font-size:24px; color:var(--text-primary); }
.setup-logo-text span { color:var(--gold); }

/* Progress bar */
.progress-bar { display:flex; align-items:center; justify-content:center; gap:0; }
.progress-step { display:flex; flex-direction:column; align-items:center; gap:6px; }
.progress-dot {
    width:32px; height:32px; border-radius:50%;
    border:2px solid var(--border-mid); background:var(--bg-card);
    display:flex; align-items:center; justify-content:center;
    font-size:13px; font-weight:600; color:var(--text-dim);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.progress-step.active .progress-dot { border-color:var(--gold); color:var(--gold); background:rgba(196,154,40,0.1); }
.progress-step.done .progress-dot { border-color:var(--green); background:var(--green-bg); color:var(--green); }
.progress-label { font-size:11px; color:var(--text-dim); letter-spacing:0.5px; white-space:nowrap; }
.progress-step.active .progress-label { color:var(--gold); }
.progress-step.done .progress-label { color:var(--green); }
.progress-line { height:2px; width:60px; background:var(--border); margin: 0 4px; margin-bottom:18px; border-radius:1px; transition:background 0.2s; }
.progress-line.done { background:var(--green); }

/* Card */
.setup-card {
    background:var(--bg-card); border:1px solid var(--border-mid);
    border-radius:var(--radius-lg); padding:28px 28px 24px;
}
.setup-step-badge {
    font-size:11px; color:var(--text-dim); letter-spacing:2px;
    text-transform:uppercase; margin-bottom:10px;
}
.setup-card h1 { font-size:22px; color:var(--text-primary); margin:0 0 8px; }
.setup-lead { font-size:14px; color:var(--text-muted); line-height:1.6; margin:0 0 22px; }

/* Alert */
.alert { display:flex; align-items:center; gap:8px; padding:10px 14px; border-radius:var(--radius); margin-bottom:16px; font-size:13px; }
.alert-error { background:var(--red-bg); color:var(--red); border:1px solid var(--red-border); }
.alert-success { background:var(--green-bg); color:var(--green); border:1px solid var(--green-border); }

/* Form */
.setup-form { display:flex; flex-direction:column; gap:14px; }
.form-group { display:flex; flex-direction:column; gap:5px; }
.form-row { display:flex; gap:12px; }
.form-row .form-group { flex:1; }
.form-group-sm { max-width:100px; }
label { font-size:12px; color:var(--text-muted); letter-spacing:0.3px; }
.required { color:var(--red); }
.form-hint { font-size:11px; color:var(--text-dim); }

input[type="text"],input[type="email"],input[type="password"],
input[type="number"],input[type="tel"] {
    background:rgba(0,0,0,0.4); border:1px solid var(--border-mid);
    border-radius:var(--radius); color:var(--text-primary);
    font-size:14px; padding:9px 12px; outline:none; width:100%;
    transition:border-color 0.15s;
}
input:focus { border-color:var(--gold); }
.input-mono { font-family:'Courier New',Courier,monospace; letter-spacing:2px; }

.btn-primary {
    background:var(--gold); color:#0A0805; border:none;
    border-radius:var(--radius); padding:11px 18px;
    font-size:14px; font-weight:600; cursor:pointer;
    transition:background 0.15s; width:100%;
}
.btn-primary:hover { background:var(--gold-light); }
.btn-primary:disabled { opacity:0.6; cursor:not-allowed; }
.btn-secondary {
    background:transparent; color:var(--text-muted);
    border:1px solid var(--border-mid); border-radius:var(--radius);
    padding:11px 18px; font-size:14px; cursor:pointer;
    text-decoration:none; display:inline-block; text-align:center;
    transition:background 0.15s;
}
.btn-secondary:hover { background:rgba(255,255,255,0.05); }
.btn-spinner { font-size:14px; }

/* Password strength */
.pw-strength { display:flex; align-items:center; gap:10px; }
.pw-bar { flex:1; height:4px; background:var(--border); border-radius:2px; overflow:hidden; }
.pw-bar-fill { height:100%; width:0; border-radius:2px; transition:width 0.3s, background 0.3s; }
#pwStrengthLabel { font-size:12px; min-width:80px; }

/* Success */
.success-icon { text-align:center; padding:10px 0 0; }
.success-actions { display:flex; flex-direction:column; gap:10px; margin-top:24px; }

/* Info box */
.setup-info-box {
    margin-top:16px; padding:12px 14px; background:rgba(196,154,40,0.08);
    border:1px solid rgba(196,154,40,0.3); border-radius:var(--radius);
    font-size:12px; color:var(--text-muted); line-height:1.6;
}
.setup-info-box code { background:rgba(0,0,0,0.3); padding:1px 5px; border-radius:3px; font-size:11px; }

/* Footer */
.setup-footer { text-align:center; font-size:12px; color:var(--text-dim); }
.setup-footer a { color:var(--gold); text-decoration:none; }

@media(max-width:480px) { .form-row{flex-direction:column} .setup-card{padding:20px 16px} }
