@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter/inter-latin.woff2") format("woff2");
}

:root {
    color-scheme: light;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
    background: #f8fafc;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 20px;
    font-size: 14px;
    line-height: 1.6;
}

body.access-page {
    display: flex;
    align-items: center;
    justify-content: center;
}

.access-shell {
    width: 100%;
    max-width: 480px;
}

.access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

a {
    color: #334155;
    text-decoration-color: #94a3b8;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:hover {
    color: #0f172a;
    text-decoration-color: currentColor;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #0f172a;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
}

.brand-mark svg {
    width: 21px;
    height: 21px;
}

.brand-name {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.4px;
}

.languages {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
}

.languages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 28px;
    padding: 3px 8px;
    border-radius: 6px;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.languages a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.languages a[aria-current="page"] {
    background: #0f172a;
    color: #fff;
}

.access-card {
    width: 100%;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 20px rgb(15 23 42 / 4%);
}

.access-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

.access-symbol svg {
    width: 23px;
    height: 23px;
}

p {
    margin: 0 0 16px;
    color: #475569;
}

.eyebrow {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 12px;
    font-size: 27px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.8px;
    overflow-wrap: anywhere;
}

.access-intro {
    margin-bottom: 22px;
    line-height: 1.7;
}

.notice {
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.notice p {
    margin-bottom: 8px;
    color: inherit;
}

.notice p:last-child {
    margin-bottom: 0;
}

.notice.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.notice.info {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #334155;
}

.identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 22px 0;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}

.identity strong {
    color: #0f172a;
    font-weight: 600;
}

.identity span {
    color: #64748b;
    font-size: 13px;
}

form {
    margin: 0;
}

label {
    display: block;
    margin: 20px 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 550;
}

input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input:hover {
    border-color: #94a3b8;
}

input:focus {
    border-color: #64748b;
}

input[aria-invalid="true"] {
    border-color: #b91c1c;
}

button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid #0f172a;
    border-radius: 8px;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

button:hover,
.primary-button:hover {
    border-color: #334155;
    background: #334155;
    color: #fff;
}

button:disabled,
.primary-button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: wait;
}

.primary-button svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #64748b;
    outline-offset: 3px;
}

small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.65;
}

.access-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    font-size: 13px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.access-support {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.7;
}

.access-links .access-support {
    margin-top: 4px;
}

.access-support p {
    margin-bottom: 8px;
    color: #64748b;
}

.access-support p:last-child {
    margin-bottom: 0;
}

.access-support .support-title {
    margin-bottom: 5px;
    color: #334155;
    font-weight: 600;
}

.access-footer {
    margin-top: 18px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

.access-footer p {
    margin: 0;
    color: inherit;
}

[hidden] {
    display: none !important;
}

@media (max-width: 420px) {
    body {
        padding: 28px 16px;
    }

    .access-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .brand {
        gap: 9px;
    }

    .brand-name {
        max-width: 140px;
        font-size: 14px;
    }

    .access-card {
        padding: 26px 24px;
    }

    h1 {
        font-size: 24px;
        letter-spacing: -0.6px;
    }
}

@media (max-width: 359px) {
    .brand-name {
        max-width: 114px;
        font-size: 13px;
    }

    .brand-mark {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .access-card {
        padding: 24px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
