* {
    box-sizing: border-box;
}

:root {
    --background: #031019;
    --panel: rgba(7, 24, 31, .91);
    --panel-soft: rgba(13, 38, 44, .72);
    --border: rgba(255, 255, 255, .11);

    --text: #f4f7f5;
    --muted: #93aaa2;

    --accent: #5deb91;
    --accent-dark: #42d77a;
}

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

body {
    min-height: 100vh;

    font-family: Arial, sans-serif;
    color: var(--text);

    background:
        linear-gradient(
            90deg,
            rgba(2, 12, 19, .97) 0%,
            rgba(2, 12, 19, .88) 38%,
            rgba(2, 12, 19, .52) 72%,
            rgba(2, 12, 19, .68) 100%
        ),
        linear-gradient(
            0deg,
            rgba(2, 12, 19, .92) 0%,
            transparent 48%
        ),
        url("../images/landing/hero-stadium.png")
        center / cover no-repeat fixed;
}

.login-page {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 72px 24px;
}

.back-link {
    position: absolute;
    top: 30px;
    left: 38px;

    color: rgba(255, 255, 255, .68);
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        color .15s ease,
        transform .15s ease;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-2px);
}

.login-card {
    width: 100%;
    max-width: 440px;

    padding: 34px 34px 30px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(11, 32, 39, .96),
            rgba(4, 18, 25, .94)
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .42),
        inset 0 1px rgba(255, 255, 255, .035);

    backdrop-filter: blur(16px);
}

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

    color: white;
    text-decoration: none;

    font-size: 18px;
    font-weight: 900;
    letter-spacing: .06em;
}

.brand-sport {
    color: var(--accent);
}

.brand-divider {
    display: block;

    width: 1px;
    height: 18px;

    background: rgba(255, 255, 255, .26);
}

.login-heading {
    margin: 38px 0 30px;
}

.login-heading h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.login-heading p {
    margin: 11px 0 0;

    max-width: 330px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.5;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;

    margin-bottom: 8px;

    color: #dce7e2;

    font-size: 13px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 52px;

    padding: 12px 14px;

    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;

    outline: none;

    background: rgba(0, 0, 0, .19);
    color: white;

    font-family: inherit;
    font-size: 16px;

    transition:
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

input:hover {
    border-color: rgba(255, 255, 255, .22);
}

input:focus {
    border-color: var(--accent);

    background: rgba(0, 0, 0, .27);

    box-shadow:
        0 0 0 3px rgba(93, 235, 145, .10);
}

.error {
    margin-bottom: 20px;
    padding: 12px 14px;

    border: 1px solid rgba(248, 113, 113, .30);
    border-radius: 9px;

    background: rgba(127, 29, 29, .22);
    color: #fecaca;

    font-size: 13px;
    line-height: 1.45;
}

.login-button {
    width: 100%;
    min-height: 54px;

    margin-top: 4px;

    border: 0;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    background: var(--accent);
    color: #03130b;

    font-family: inherit;
    font-size: 15px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.login-button:hover {
    background: #70f29e;

    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(93, 235, 145, .15);
}

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

.login-button:disabled {
    opacity: .72;
    cursor: default;
    transform: none;
}

.button-arrow {
    font-size: 19px;
    line-height: 1;
}

.spinner {
    display: none;

    width: 18px;
    height: 18px;

    border: 2px solid rgba(3, 19, 11, .28);
    border-top-color: #03130b;
    border-radius: 50%;

    animation: spin .8s linear infinite;
}

.login-button.loading .spinner {
    display: block;
}

.login-footnote {
    margin: 22px 0 0;

    color: rgba(170, 191, 182, .60);

    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.guest-button,
.account-toggle {
    width: 100%;
    min-height: 56px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 900;

    cursor: pointer;
}

.guest-button {
    border: 0;

    background: var(--accent);
    color: #03130b;

    transition:
        background .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.guest-button:hover {
    background: #70f29e;

    transform: translateY(-1px);

    box-shadow:
        0 10px 30px rgba(93, 235, 145, .15);
}

.guest-note {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 12px;
    text-align: center;
}

.login-separator {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;
}

.login-separator::before,
.login-separator::after {
    content: "";

    height: 1px;
    flex: 1;

    background: rgba(255, 255, 255, .10);
}

.login-separator span {
    color: rgba(255, 255, 255, .38);

    font-size: 12px;
    font-weight: 700;
}

.account-toggle {
    border: 1px solid rgba(255, 255, 255, .14);

    background: rgba(255, 255, 255, .035);
    color: var(--text);

    transition:
        border-color .2s ease,
        background .2s ease;
}

.account-toggle:hover {
    border-color: rgba(93, 235, 145, .38);

    background: rgba(93, 235, 145, .055);
}

.toggle-chevron {
    font-size: 16px;

    transition: transform .28s ease;
}

.account-toggle[aria-expanded="true"] .toggle-chevron {
    transform: rotate(180deg);
}

.account-panel {
    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    transition:
        grid-template-rows .32s ease,
        opacity .24s ease,
        margin-top .32s ease;

    margin-top: 0;
}

.account-panel.open {
    grid-template-rows: 1fr;

    opacity: 1;

    margin-top: 22px;
}

.account-panel-inner {
    overflow: hidden;
}

.account-panel .error {
    margin-top: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {

    body {
        background-position: 58% center;
    }

    .login-page {
        align-items: flex-start;

        padding:
            88px
            16px
            32px;
    }

    .back-link {
        top: 26px;
        left: 20px;
    }

    .login-card {
        padding: 28px 20px 24px;

        border-radius: 15px;
    }

    .login-heading {
        margin: 32px 0 26px;
    }

    .login-heading h1 {
        font-size: 30px;
    }

}