*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    min-width: 320px;
    min-height: 100%;
    background: #050505;
}
body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    background: #050505;
    color: #fff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}
.glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(820px, 112vw);
    height: min(680px, 86vh);
    background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.035) 0%,
        rgba(255,255,255,0.014) 44%,
        rgba(255,255,255,0) 78%
    );
    filter: blur(32px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding:
        max(32px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(32px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
}
.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.2vw, 12px);
    max-width: 100%;
    margin-bottom: 15px;
}
.brand-mark {
    flex: 0 0 auto;
    width: clamp(2rem, 1.85rem + 0.7vw, 2.35rem);
    height: auto;
}
.title {
    font-size: clamp(2.35rem, 2.22rem + 0.6vw, 2.65rem);
    font-weight: 620;
    line-height: 1.06;
    letter-spacing: -0.032em;
    margin-top: 0;
    margin-bottom: 0;
    text-wrap: balance;
}
.subtitle {
    max-width: 36rem;
    font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1rem);
    color: rgba(255,255,255,0.68);
    margin-top: 0;
    margin-bottom: clamp(32px, 5vh, 40px);
    line-height: 1.42;
    text-wrap: balance;
}
.auth-status {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    color: rgba(255,255,255,0.58);
    font-size: 0.8125rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.auth-status[hidden] {
    display: none;
}
.status-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #62b982;
    box-shadow: 0 0 0 3px rgba(98,185,130,0.1);
}
.action-area {
    position: relative;
    width: 100%;
}
.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    opacity: 0.72;
    transform: translateY(5px);
    transition: opacity 200ms ease, transform 200ms ease;
}
.actions.is-ready {
    opacity: 1;
    transform: translateY(0);
}
.action-btn[hidden] {
    display: none;
}
.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f5f5f5;
    color: #080808;
    font-size: 0.925rem;
    line-height: 1.25;
    font-weight: 560;
    letter-spacing: -0.006em;
    text-decoration: none;
    cursor: pointer;
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease;
}
.action-btn.forward {
    justify-content: flex-start;
    min-width: 180px;
    padding-right: 50px;
    padding-left: 24px;
    text-align: left;
}
.protected-wrapper {
    max-width: 720px;
}
.protected-wrapper .brand-lockup {
    margin-bottom: 10px;
}
.protected-subtitle {
    margin-bottom: 40px;
}
.protected-identity {
    position: static;
    margin-bottom: 24px;
}
.protected-wrapper .action-area {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
}
.service-section-label {
    width: 100%;
    max-width: 420px;
    margin-right: auto;
    margin-bottom: 10px;
    margin-left: auto;
    padding-left: calc(24px + 1px);
    text-align: left;
}
.protected-wrapper .action-area > .actions {
    max-width: 420px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
}
.protected-wrapper .action-btn {
    width: 100%;
}
.protected-wrapper .action-btn.forward {
    padding-right: 56px;
    padding-left: 24px;
}
.account-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 420px;
    margin: 24px auto 0;
}
.account-actions .action-btn {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.zero-copy {
    max-width: 32rem;
    margin: -22px auto 40px;
    color: rgba(255,255,255,0.58);
    font-size: 0.925rem;
    line-height: 1.5;
    text-wrap: balance;
}
.action-btn.forward::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 20px;
    color: rgba(0,0,0,0.56);
    font-size: 1rem;
    font-weight: 400;
    transform: translateY(-52%);
}
.protected-wrapper .action-btn.forward::after {
    right: 24px;
}
.action-btn.secondary {
    background: transparent;
    color: rgba(255,255,255,0.82);
    border-color: rgba(255,255,255,0.22);
}
.action-btn:active {
    transform: translateY(1px);
}
.action-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.92);
    outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
    .action-btn:hover {
        transform: translateY(-1px);
        background: #fff;
    }
    .action-btn.secondary:hover {
        background: rgba(255,255,255,0.06);
        border-color: rgba(255,255,255,0.38);
        color: #fff;
    }
    .action-btn:active {
        transform: translateY(1px);
    }
}
@media (max-width: 479px) {
    .wrapper {
        justify-content: flex-start;
        padding-top: max(32px, calc(50svh - 118px));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 56px));
        padding-left: max(20px, env(safe-area-inset-left));
    }
    .protected-wrapper {
        justify-content: center;
        padding-top: max(32px, env(safe-area-inset-top));
        padding-bottom: max(32px, env(safe-area-inset-bottom));
    }
    .subtitle br {
        display: none;
    }
    .actions {
        max-width: 320px;
        flex-direction: column;
        gap: 12px;
    }
    .action-btn {
        width: 100%;
    }
    .protected-wrapper .action-area > .actions {
        max-width: 320px;
    }
    .protected-wrapper .service-section-label {
        max-width: 320px;
    }
    .account-actions {
        max-width: 320px;
        flex-direction: column;
    }
}
@media (max-width: 359px) {
    .brand-lockup {
        gap: 8px;
    }
    .brand-mark {
        width: 1.75rem;
    }
    .title {
        font-size: 2.05rem;
    }
}
@media (max-height: 500px) and (orientation: landscape) {
    .wrapper {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    .brand-lockup {
        margin-bottom: 10px;
    }
    .title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }
    .subtitle {
        margin-bottom: 22px;
    }
    .protected-wrapper .brand-lockup {
        margin-bottom: 10px;
    }
    .protected-wrapper .protected-subtitle {
        margin-bottom: 40px;
    }
    .protected-wrapper .service-section-label {
        margin-bottom: 10px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .actions,
    .action-btn {
        transition: none;
    }
    .actions {
        transform: none;
    }
}
