:root {
    color-scheme: dark;
    font-family: Inter, system-ui, sans-serif;
    background: #080d16;
    color: #edf2fa;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            #142746 0%,
            #080d16 65%
        );
}

.access-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.access-card {
    width: 100%;
    max-width: 440px;
    padding: 38px;
    background: #101827;
    border: 1px solid #26364c;
    border-radius: 22px;
    box-shadow: 0 24px 80px #0006;
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: linear-gradient(
        145deg, #397aff, #173c9e
    );
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 8px 30px #2864ff33;
}

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

.brand p {
    font-size: 10px;
    letter-spacing: 3px;
    color: #8299bc;
}

h2 {
    font-size: 22px;
    letter-spacing: -.5px;
    margin: 0 0 10px;
}

.subtitle {
    color: #8e9db4;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 26px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: #bdc9da;
}

input {
    width: 100%;
    height: 48px;
    background: #0a111e;
    border: 1px solid #2a3a50;
    border-radius: 9px;
    color: #edf2fa;
    font: inherit;
    font-size: 14px;
    padding: 0 14px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color .2s;
}

input:focus {
    border-color: #5087ff;
    box-shadow: 0 0 0 3px #397aff20;
}

button {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: #3169ed;
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background .2s;
}

button:hover {
    background: #477dff;
}

button:focus-visible {
    outline: 2px solid #8ab0ff;
    outline-offset: 3px;
}

button:disabled {
    opacity: .5;
    cursor: wait;
}

button.secondary {
    background: transparent;
    color: #8baeff;
    min-height: 38px;
    margin-top: 8px;
}

button.secondary:hover {
    background: #ffffff08;
}

#status-message {
    font-size: 12px;
    line-height: 1.6;
    color: #9bb8f8;
    overflow-wrap: anywhere;
}

#status-message:empty {
    display: none;
}

#account-name,
#account-email {
    overflow-wrap: anywhere;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #26364c;
    font-size: 11px;
    color: #8b9bb2;
}

.security-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48c99b;
    box-shadow: 0 0 10px #48c99b44;
}

.institution {
    color: #64758e;
    font-size: 10px;
    text-align: center;
    margin-top: 24px;
    letter-spacing: .5px;
}

@media (max-width: 480px) {
    .access-card {
        padding: 26px;
    }

    .access-shell {
        padding: 20px 14px;
    }

    .brand h1 {
        font-size: 23px;
    }
}
