:root {
    color-scheme: dark;
    --bg: #08111f;
    --panel: rgba(16, 26, 44, 0.92);
    --panel-border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --danger: #f87171;
    --input-bg: rgba(15, 23, 42, 0.72);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.17), transparent 28rem),
        radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.11), transparent 30rem),
        var(--bg);
}

button,
input {
    font: inherit;
}

.guest-page {
    display: flex;
}

.guest-shell {
    display: grid;
    width: 100%;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 34px;
    border: 1px solid var(--panel-border);
    border-radius: 22px;
    background: var(--panel);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(18px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.login-brand-icon {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.32);
    font-size: 25px;
}

.login-brand-name {
    margin: 0;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.login-brand-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.login-heading {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.login-description {
    margin: 0 0 26px;
    color: var(--muted);
    line-height: 1.55;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.form-input {
    display: block;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: var(--input-bg);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.form-input::placeholder {
    color: #64748b;
}

.form-input:focus {
    border-color: rgba(96, 165, 250, 0.92);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.login-button {
    width: 100%;
    margin-top: 6px;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--accent), #60a5fa);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.24);
    font-weight: 750;
    transition:
        transform 0.16s ease,
        filter 0.16s ease;
}

.login-button:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-danger {
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fecaca;
    background: rgba(127, 29, 29, 0.28);
}

.login-footer {
    margin-top: 24px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 560px) {
    .guest-shell {
        padding: 18px;
    }

    .login-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .login-heading {
        font-size: 25px;
    }
}
