:root {
    --bg-main:#0b0f19;
    --bg-card:#121826;
    --bg-header:#0a0e17;

    --primary:#3b82f6;
    --danger:#ef4444;

    --text-main:#e5e7eb;
    --text-muted:#9ca3af;

    --radius:14px;
    --shadow:0 12px 35px rgba(0,0,0,.7);
}

* { box-sizing:border-box }

body {
    margin:0;
    font-family:Inter,system-ui,sans-serif;
    background:var(--bg-main);
    color:var(--text-main);
}

/* HEADER */
.app-header {
    background:var(--bg-header);
    padding:18px 30px;
    box-shadow:var(--shadow);
}
.brand {
    display:flex;
    align-items:center;
    gap:10px;
    font-size:1.25rem;
    font-weight:700;
}

/* AUTH */
.auth-container {
    min-height:calc(100vh - 140px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
}

.auth-card {
    width:100%;
    max-width:380px;
    background:var(--bg-card);
    padding:30px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.auth-card h2 {
    margin:0 0 18px;
    text-align:center;
}

/* INPUTS */
input {
    width:100%;
    padding:12px 14px;
    margin:10px 0;
    border-radius:10px;
    border:none;
    background:#0f172a;
    color:var(--text-main);
    font-size:.95rem;
}

input:focus {
    outline:none;
    border:1px solid var(--primary);
}

/* ERROR */
.error {
    background:rgba(239,68,68,.15);
    color:var(--danger);
    padding:10px;
    border-radius:8px;
    font-size:.85rem;
    margin-bottom:10px;
    text-align:center;
}

/* SLIDER */
.slider-container {
    margin:20px 0;
}

.slider {
    position:relative;
    height:44px;
    background:#1f2933;
    border-radius:999px;
    overflow:hidden;
}

.slider-thumb {
    width:44px;
    height:44px;
    background:var(--primary);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    cursor:grab;
    position:absolute;
    top:0;
    left:0;
}

#sliderText {
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    color:var(--text-muted);
    pointer-events:none;
}

/* BUTTON */
button {
    width:100%;
    padding:12px;
    border:none;
    border-radius:10px;
    background:var(--primary);
    color:white;
    font-weight:700;
    cursor:pointer;
    transition:.2s;
}

button:disabled {
    opacity:.5;
    cursor:not-allowed;
}

button:hover:not(:disabled) {
    filter:brightness(.9);
}

/* REGISTER */
.register-link {
    margin-top:18px;
    text-align:center;
    font-size:.85rem;
}
.register-link a {
    color:var(--primary);
    text-decoration:none;
}
.register-link a:hover {
    text-decoration:underline;
}

/* FOOTER */
.app-footer {
    text-align:center;
    padding:20px;
    background:var(--bg-header);
    color:var(--text-muted);
}

.success {
    background:rgba(34,197,94,.15);
    color:#22c55e;
    padding:10px;
    border-radius:8px;
    font-size:.85rem;
    margin-bottom:10px;
    text-align:center;
}

