:root {
    color-scheme: dark;
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    background: #101413;
    color: #f7faf8;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    min-height: 100svh;
}

button,
a {
    font: inherit;
}

.access-page {
    position: relative;
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    isolation: isolate;
}

.scene,
.shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scene {
    z-index: -3;
    object-fit: cover;
    object-position: center;
}

.shade {
    z-index: -2;
    background: rgba(7, 10, 9, 0.55);
}

.access-page::after {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(58%, 900px);
    content: "";
    background: rgba(8, 12, 11, 0.78);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 28px clamp(24px, 5vw, 76px);
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.brand div {
    display: grid;
    gap: 3px;
}

.brand strong {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.brand span {
    color: #b9c4bf;
    font-size: 12px;
    letter-spacing: 0;
}

.message {
    align-self: center;
    width: min(590px, calc(100% - 48px));
    margin: 24px clamp(24px, 5vw, 76px) 72px;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: #b8d8c8;
    font-size: 14px;
    font-weight: 600;
}

.status-light {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e76d56;
    box-shadow: 0 0 0 6px rgba(231, 109, 86, 0.12);
}

.code {
    margin: 0 0 14px;
    color: #7ed3a5;
    font-size: 15px;
    font-weight: 700;
}

h1 {
    max-width: 570px;
    margin: 0;
    font-size: clamp(44px, 6.5vw, 82px);
    font-weight: 720;
    line-height: 0.99;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h1.long-host {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.03;
}

.summary {
    max-width: 540px;
    margin: 28px 0 0;
    color: #d0d8d4;
    font-size: 18px;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 38px;
}

.actions a,
.actions button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.actions a:hover,
.actions button:hover {
    transform: translateY(-2px);
}

.actions a:focus-visible,
.actions button:focus-visible {
    outline: 3px solid #f4c95d;
    outline-offset: 3px;
}

.primary-action {
    background: #eef7f1;
    color: #122019;
}

.primary-action:hover {
    background: #ffffff;
}

.secondary-action {
    background: rgba(16, 22, 20, 0.72);
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #f7faf8;
}

.secondary-action:hover {
    background: rgba(29, 38, 34, 0.88);
    border-color: rgba(255, 255, 255, 0.42) !important;
}

footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px clamp(24px, 5vw, 76px) 30px;
    color: #aab5b0;
    font-size: 12px;
}

.footer-separator {
    width: 24px;
    height: 1px;
    background: #5e6b65;
}

@media (max-width: 900px) {
    .scene {
        object-position: 68% center;
    }

    .access-page::after {
        width: 72%;
    }
}

@media (max-width: 640px) {
    .access-page::after {
        width: 100%;
        background: rgba(8, 12, 11, 0.68);
        border-right: 0;
    }

    .scene {
        object-position: 67% center;
    }

    .brand {
        padding-top: 20px;
    }

    .brand img {
        width: 46px;
        height: 46px;
    }

    .message {
        width: calc(100% - 48px);
        margin-bottom: 38px;
    }

    .status {
        margin-bottom: 24px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 62px);
        line-height: 1.02;
    }

    h1.long-host {
        font-size: clamp(36px, 10.5vw, 50px);
    }

    .summary {
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.55;
    }

    .actions {
        display: grid;
        margin-top: 30px;
    }

    .actions a,
    .actions button {
        width: 100%;
    }

    footer {
        padding-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actions a,
    .actions button {
        transition: none;
    }
}
