/* public/login.css */
:root {
    --bg: #0b0b0e;
    --text: #e9e9ee;
    --muted: #a6a6b3;
    --red: #e0122b;
    --red2: #ff2b45;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background:
        radial-gradient(1200px 600px at 25% -10%, rgba(224, 18, 43, .18), transparent 60%),
        radial-gradient(900px 500px at 90% 10%, rgba(224, 18, 43, .10), transparent 55%),
        var(--bg);
    color: var(--text);
}

/* ===== Topbar (igual vibe que form) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(10, 10, 14, .75);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(224, 18, 43, .15);
}

.brand h1 {
    font-size: 14px;
    margin: 0;
    letter-spacing: .2px;
    font-weight: 750;
}

.brand p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== Layout ===== */
.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 18px;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Card ===== */
.card {
    width: 100%;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 16px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.card-title {
    margin: 0;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: .2px;
}

.card-subtitle {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.card-body {
    padding: 16px;
    background: rgba(0, 0, 0, .12);
}

.alert {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(224, 18, 43, .35);
    background: rgba(224, 18, 43, .10);
    color: var(--text);
    font-size: 13px;
    margin-bottom: 12px;
}

/* ===== Form ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .10);
    color: var(--text);
    border-radius: 12px;
    padding: 11px 12px;
    outline: none;
    transition: .15s ease;
}

input:focus {
    border-color: rgba(255, 43, 69, .5);
    box-shadow: 0 0 0 4px rgba(224, 18, 43, .15);
}

/* ===== Buttons ===== */
.btn {
    margin-top: 10px;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    padding: 11px 12px;
    border-radius: 12px;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
    transition: .15s ease;
}

.btn:hover {
    border-color: rgba(255, 255, 255, .18);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    border-color: rgba(224, 18, 43, .45);
    background: linear-gradient(180deg, rgba(224, 18, 43, .90), rgba(192, 12, 38, .90));
    box-shadow: 0 10px 24px rgba(224, 18, 43, .18);
}

.btn-primary:hover {
    border-color: rgba(255, 43, 69, .55);
}

.hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(233, 233, 238, .75);
    line-height: 1.45;
}

@media (max-width: 520px) {
    .wrap {
        padding: 14px;
    }
}