/* Public landing page for the update-server package. */
.update-home-page {
    --update-ink: #20283c;
    --update-blue: #2f6bf9;
    --update-red: #e81123;
    background:
        radial-gradient(circle at 12% 14%, rgba(47, 107, 249, 0.08), transparent 28%),
        radial-gradient(circle at 88% 86%, rgba(232, 17, 35, 0.05), transparent 26%),
        #f5f7fb !important;
    background-attachment: fixed !important;
    background-image:
        radial-gradient(circle at 12% 14%, rgba(47, 107, 249, 0.08), transparent 28%),
        radial-gradient(circle at 88% 86%, rgba(232, 17, 35, 0.05), transparent 26%) !important;
    color: var(--update-ink);
}

.update-home-page .update-home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 30px clamp(20px, 5vw, 76px) 24px;
    overflow: hidden;
}

.update-home-main {
    width: min(1180px, 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: clamp(46px, 8vh, 92px) 0 56px;
}

.update-home-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    min-height: 455px;
    overflow: hidden;
    border: 1px solid rgba(39, 55, 91, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(39, 55, 91, 0.1);
}

.update-home-copy {
    position: relative;
    z-index: 1;
    padding: clamp(36px, 6vw, 76px);
}

.update-home-inline-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    min-height: 0;
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
}

.update-home-inline-logo svg {
    display: block;
    width: 100%;
    height: auto;
}

.update-home-inline-logo .logo-fallback {
    color: var(--update-ink);
}

.update-home-copy h1 {
    max-width: 600px;
    margin: 0 0 20px;
    color: var(--update-ink);
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.update-home-description {
    max-width: 540px;
    margin: 0;
    color: #626b7d;
    font-size: 17px;
    line-height: 1.6;
}

.update-home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 34px;
}

.update-home-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(47, 107, 249, 0.18);
}

.update-home-login:focus-visible {
    outline: 3px solid var(--update-ink) !important;
    outline-offset: 3px;
}

.update-home-visual {
    position: relative;
    align-self: stretch;
    min-height: 455px;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 18%, rgba(47, 107, 249, 0.3), transparent 32%),
        radial-gradient(circle at 82% 84%, rgba(232, 17, 35, 0.18), transparent 30%),
        linear-gradient(145deg, #252e45 0%, #171d2d 100%);
}

.update-home-visual::before,
.update-home-visual::after {
    position: absolute;
    content: '';
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.update-home-visual::before {
    top: -185px;
    right: -125px;
    width: 520px;
    height: 520px;
}

.update-home-visual::after {
    bottom: -150px;
    left: -60px;
    width: 280px;
    height: 280px;
    border-color: rgba(232, 17, 35, 0.28);
}

.update-home-orbit {
    position: absolute;
    border: 1px solid rgba(93, 139, 255, 0.22);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.update-home-orbit-one {
    top: 92px;
    left: 8%;
    width: 500px;
    height: 180px;
}

.update-home-orbit-two {
    top: 135px;
    left: 15%;
    width: 450px;
    height: 155px;
    border-color: rgba(232, 17, 35, 0.22);
}

.update-home-orbit-three {
    top: 176px;
    left: 24%;
    width: 370px;
    height: 130px;
    border-color: rgba(255, 255, 255, 0.1);
}

.update-home-network {
    position: absolute;
    inset: 0;
}

.update-home-link {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    height: 1px;
    background: linear-gradient(90deg, rgba(143, 177, 255, 0.7), rgba(143, 177, 255, 0.06));
    transform-origin: left center;
}

.update-home-link-one {
    width: 190px;
    transform: rotate(-31deg);
}

.update-home-link-two {
    width: 185px;
    transform: rotate(34deg);
}

.update-home-link-three {
    width: 170px;
    transform: rotate(151deg);
}

.update-home-link-four {
    width: 175px;
    transform: rotate(218deg);
}

.update-home-node {
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    border: 3px solid #232c42;
    border-radius: 50%;
    background: #8fb1ff;
    box-shadow: 0 0 0 1px rgba(143, 177, 255, 0.45), 0 0 24px rgba(47, 107, 249, 0.5);
}

.update-home-node-one {
    top: 27%;
    right: 18%;
}

.update-home-node-two {
    right: 17%;
    bottom: 25%;
    background: #e81123;
    box-shadow: 0 0 0 1px rgba(232, 17, 35, 0.4), 0 0 24px rgba(232, 17, 35, 0.4);
}

.update-home-node-three {
    bottom: 24%;
    left: 20%;
}

.update-home-node-four {
    top: 25%;
    left: 18%;
    width: 10px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 0 20px rgba(255, 255, 255, 0.25);
}

.update-home-hub {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(64, 78, 111, 0.96), rgba(32, 40, 61, 0.98));
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.34),
        0 0 50px rgba(47, 107, 249, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translate(-50%, -50%) rotate(45deg);
}

.update-home-hub::before {
    position: absolute;
    inset: 12px;
    content: '';
    border: 1px solid rgba(143, 177, 255, 0.22);
    border-radius: 20px;
}

.update-home-hub span {
    position: relative;
    width: 34px;
    height: 34px;
    border: 2px solid #8fb1ff;
    border-radius: 8px;
    box-shadow: 0 0 22px rgba(47, 107, 249, 0.38);
    transform: rotate(-45deg);
}

.update-home-hub span::before,
.update-home-hub span::after {
    position: absolute;
    content: '';
    background: #e81123;
}

.update-home-hub span::before {
    top: 7px;
    right: -7px;
    width: 12px;
    height: 2px;
}

.update-home-hub span::after {
    right: -2px;
    bottom: 7px;
    width: 2px;
    height: 12px;
}

.update-home-footer {
    width: min(1180px, 100%);
    margin: 0 auto;
    color: #4b556a;
    font-size: 14px;
    line-height: 1.5;
}

.update-home-footer a {
    color: var(--update-ink);
    font-weight: 600;
    text-decoration: none;
}

.update-home-footer a:hover,
.update-home-footer a:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

.update-home-footer a:focus-visible {
    outline: 3px solid var(--update-ink) !important;
    outline-offset: 3px;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .update-home-card {
        grid-template-columns: 1fr;
    }

    .update-home-visual {
        min-height: 340px;
    }
}

@media (max-width: 560px) {
    .update-home-page .update-home-shell {
        padding: 20px 16px;
    }

    .update-home-main {
        padding-top: 42px;
    }

    .update-home-copy {
        padding: 32px 24px 36px;
    }

    .update-home-inline-logo {
        width: 180px;
        min-height: 0;
        margin-bottom: 24px;
        padding: 0;
    }

    .update-home-copy h1 {
        font-size: 40px;
    }

    .update-home-description {
        font-size: 15px;
    }

    .update-home-login {
        padding: 9px 12px;
        font-size: 12px;
    }

    .update-home-visual {
        min-height: 300px;
    }

    .update-home-footer {
        text-align: center;
    }
}
