:root {
    --bg: #02060f;
    --card: #0d1426;
    --panel: #121b33;
    --accent: #f7b733;
    --accent-strong: #fc4a1a;
    --text: #f4f6ff;
    --muted: #adb7d7;
    --error: #ff6b6b;
    --error-bg: rgba(255, 107, 107, 0.12);
    font-family: 'Poppins', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body.login-body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(247, 183, 51, 0.25), transparent 45%),
                radial-gradient(circle at 80% 0%, rgba(252, 74, 26, 0.2), transparent 50%),
                linear-gradient(135deg, #02060f, #040b18 60%, #060e1c);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-shell {
    width: min(1100px, 100%);
}

.login-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    background: var(--card);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.login-hero {
    position: relative;
    padding: 2.7rem;
    background: linear-gradient(135deg, rgba(12, 25, 45, 0.95), rgba(7, 16, 29, 0.95));
}

.hero-content h1 {
    margin: 1.2rem 0 0.5rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.hero-content p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.hero-grid {
    display: grid;
    gap: 0.7rem;
}

.hero-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(6, 12, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.hero-value {
    font-weight: 600;
}

.hero-value--accent {
    color: var(--accent);
}

.hero-board {
    position: absolute;
    inset: auto 2rem 2rem auto;
    width: 200px;
    height: 200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 6px;
    opacity: 0.8;
}

.square {
    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.square--light {
    background: rgba(255, 255, 255, 0.2);
}

.square--dark {
    background: rgba(0, 0, 0, 0.35);
}

.login-form {
    background: var(--panel);
    padding: 2.7rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form__header h2 {
    margin: 0;
    font-size: 2rem;
}

.login-form__header p {
    margin: 0.4rem 0 1.2rem;
    color: var(--muted);
}

label {
    font-size: 0.95rem;
    color: var(--text);
}

.input-field {
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 0.6rem 1rem;
    transition: border 0.2s ease;
}

.input-field:focus-within {
    border-color: var(--accent-strong);
}

.input-icon {
    font-size: 1.4rem;
    color: var(--accent);
}

.input-field input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    flex: 1;
    padding: 0.4rem 0;
}

.login-button {
    margin-top: 1rem;
    border: none;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #031326;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(252, 74, 26, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover {
    transform: translateY(-2px);
}

.login-alert {
    border-radius: 16px;
    padding: 0.9rem 1rem;
    background: var(--error-bg);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: var(--error);
    margin-bottom: 0.5rem;
}

.login-footnote {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 960px) {
    body.login-body {
        padding: 1.5rem;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .hero-board {
        position: static;
        width: 100%;
        height: auto;
        grid-template-columns: repeat(8, minmax(24px, 1fr));
        grid-auto-rows: 60px;
        margin-top: 1.5rem;
    }
}

@media (max-width: 580px) {
    body.login-body {
        padding: 1rem;
    }

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