:root {
    color-scheme: light;
    --alpha-ink: #17324d;
    --alpha-muted: #5f7489;
    --alpha-blue: #0759a5;
    --alpha-blue-hover: #064d90;
    --alpha-line: #d9e4ee;
    --alpha-soft: #edf5fb;
    --alpha-white: #ffffff;
}

* {
    box-sizing: border-box;
}

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

body.alpha-system-page {
    margin: 0;
    color: var(--alpha-ink);
    background-color: #edf4fa;
    background-image: linear-gradient(145deg, #f7fbfe 0%, #e6f0f8 100%);
    font-family: "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
    line-height: 1.6;
}

::selection {
    color: #ffffff;
    background: var(--alpha-blue);
}

.alpha-shell {
    width: min(92%, 860px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    place-items: center;
}

.alpha-card {
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--alpha-white);
    box-shadow: 0 24px 64px rgba(23, 50, 77, 0.15);
}

.alpha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 30px;
    border-bottom: 1px solid var(--alpha-line);
}

.alpha-header a {
    display: inline-flex;
}

.alpha-logo {
    display: block;
    width: min(220px, 54vw);
    height: auto;
}

.alpha-status {
    padding: 7px 11px;
    color: var(--alpha-blue);
    border: 1px solid #bfd5e8;
    border-radius: 999px;
    background: var(--alpha-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.035em;
    white-space: nowrap;
}

.alpha-content {
    padding: clamp(46px, 7vw, 68px) clamp(24px, 8vw, 76px);
    text-align: center;
}

.alpha-title {
    max-width: 700px;
    margin: 0 auto 18px;
    font-size: clamp(34px, 5.2vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.alpha-copy {
    max-width: 660px;
    margin: 0 auto;
    color: var(--alpha-muted);
    font-size: clamp(17px, 2vw, 19px);
}

.alpha-english {
    max-width: 620px;
    margin: 14px auto 0;
    color: #71879b;
    direction: ltr;
    font-size: 14px;
}

.alpha-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.alpha-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 12px 18px;
    color: var(--alpha-white);
    border: 1px solid var(--alpha-blue);
    border-radius: 10px;
    background: var(--alpha-blue);
    box-shadow: 0 9px 20px rgba(7, 89, 165, 0.2);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.alpha-button:hover {
    color: var(--alpha-white);
    background: var(--alpha-blue-hover);
    box-shadow: 0 12px 24px rgba(7, 89, 165, 0.26);
    transform: translateY(-1px);
}

.alpha-button:focus-visible,
.alpha-footer a:focus-visible,
.alpha-header a:focus-visible {
    outline: 3px solid rgba(8, 120, 209, 0.3);
    outline-offset: 3px;
}

.alpha-button.alpha-secondary {
    color: var(--alpha-blue);
    border-color: #b9cfe2;
    background: var(--alpha-white);
    box-shadow: none;
}

.alpha-button.alpha-secondary:hover {
    border-color: var(--alpha-blue);
    background: var(--alpha-soft);
}

.alpha-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    color: #667c91;
    border-top: 1px solid var(--alpha-line);
    background: #fbfdff;
    font-size: 13px;
}

.alpha-footer a {
    color: var(--alpha-blue);
    font-weight: 700;
    text-decoration: none;
}

.alpha-copyright {
    direction: ltr;
    unicode-bidi: isolate;
}

@media (max-width: 640px) {
    .alpha-shell {
        width: min(94%, 440px);
        min-height: 100svh;
        padding: 16px 0;
    }

    .alpha-card {
        border-radius: 14px;
    }

    .alpha-header {
        align-items: center;
        flex-direction: column;
        gap: 16px;
        padding: 22px 20px;
    }

    .alpha-logo {
        width: min(205px, 64vw);
    }

    .alpha-status {
        white-space: normal;
        text-align: center;
    }

    .alpha-content {
        padding: 38px 20px 40px;
    }

    .alpha-title {
        margin-bottom: 14px;
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.16;
    }

    .alpha-copy {
        font-size: 16px;
    }

    .alpha-english {
        font-size: 13px;
    }

    .alpha-actions {
        gap: 9px;
        margin-top: 26px;
    }

    .alpha-button {
        width: 100%;
        min-height: 46px;
    }

    .alpha-footer {
        align-items: center;
        flex-direction: column;
        gap: 4px;
        padding: 17px 20px;
        text-align: center;
    }
}

@media (max-height: 650px) and (min-width: 641px) {
    .alpha-shell {
        min-height: auto;
        padding: 22px 0;
    }

    .alpha-content {
        padding-top: 36px;
        padding-bottom: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shared frosted-glass treatment, matching the Alpha Servers login screens. */
:root {
    --alpha-ink: #153653;
    --alpha-muted: #465f77;
    --alpha-line: rgba(90, 133, 169, 0.25);
}

body.alpha-system-page {
    position: relative;
    isolation: isolate;
    overflow-x: clip;
    background-color: #deedf8;
    background-image:
        radial-gradient(ellipse at 80% 5%, rgba(255, 255, 255, 0.9), transparent 55%),
        linear-gradient(140deg, #c8e1f3 0%, #edf5fb 52%, #d5e9f7 100%);
    background-attachment: fixed;
}

body.alpha-system-page::before {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    width: min(1100px, 125vw);
    height: clamp(240px, 36vh, 420px);
    left: 50%;
    top: 21%;
    transform: translateX(-50%) rotate(-24deg);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 76px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.72), rgba(49, 138, 209, 0.12));
    box-shadow: 0 32px 100px rgba(26, 84, 132, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.alpha-card {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: #f6faff;
    box-shadow:
        0 30px 80px rgba(22, 61, 98, 0.16),
        0 4px 14px rgba(22, 61, 98, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.45);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .alpha-card {
        background: rgba(255, 255, 255, 0.74);
        -webkit-backdrop-filter: blur(28px) saturate(145%);
        backdrop-filter: blur(28px) saturate(145%);
    }
}

.alpha-status {
    border-color: rgba(7, 89, 165, 0.18);
    background: rgba(231, 241, 252, 0.65);
}

.alpha-english {
    color: #526c83;
    font-size: 14px;
}

.alpha-button {
    min-height: 50px;
    border-radius: 13px;
    border-color: rgba(255, 255, 255, 0.27);
    background: linear-gradient(180deg, #126bb8, #0759a5);
    box-shadow: 0 8px 20px rgba(7, 89, 165, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.alpha-button:hover {
    background: linear-gradient(180deg, #1063ab, #064d90);
    box-shadow: 0 11px 24px rgba(7, 89, 165, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.alpha-button.alpha-secondary {
    border-color: rgba(104, 140, 173, 0.55);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.alpha-button.alpha-secondary:hover {
    background: rgba(255, 255, 255, 0.98);
}

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

.alpha-button:focus-visible,
.alpha-footer a:focus-visible,
.alpha-header a:focus-visible {
    outline-color: #0878d1;
}

.alpha-footer {
    color: #465f77;
    background: rgba(255, 255, 255, 0.32);
    font-size: 14px;
}

@media (max-width: 640px) {
    .alpha-shell {
        width: min(calc(100% - 32px), 440px);
        padding: 22px 0;
    }

    .alpha-card {
        border-radius: 24px;
    }

    body.alpha-system-page::before {
        top: 18%;
        width: 145vw;
        height: 300px;
        border-radius: 52px;
    }
}

@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
    .alpha-card {
        background: #f6faff;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    body.alpha-system-page::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alpha-button {
        transition: none !important;
        transform: none !important;
    }
}
