:root {
    color-scheme: light;
}

.astra-auth-page,
.astra-auth-page * {
    box-sizing: border-box;
}

.astra-auth-page {
    margin: 0;
    min-height: 100vh;
    color: #182744;
    background: #f5f7fb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.astra-auth-page button,
.astra-auth-page input {
    font: inherit;
}

.astra-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1.02fr) minmax(440px, .98fr);
    min-height: 100vh;
}

.astra-story {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(36px, 5vw, 76px);
    color: #fff;
    background: linear-gradient(142deg, #08162b 0%, #11294b 54%, #173a5b 100%);
}

.astra-story::before {
    position: absolute;
    z-index: -1;
    top: -24%;
    right: -36%;
    width: min(62vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgba(168, 225, 255, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 92px rgba(168, 225, 255, .035), 0 0 0 184px rgba(168, 225, 255, .025);
    content: "";
}

.astra-story::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 76% 75%, rgba(67, 207, 202, .18), transparent 28%),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    content: "";
    mask-image: linear-gradient(110deg, transparent 12%, #000 100%);
}

.astra-story-content {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 2 * clamp(36px, 5vw, 76px));
}

.astra-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #142744;
    font-size: 18px;
    font-weight: 780;
    letter-spacing: .18em;
    line-height: 1;
}

.astra-brand-light {
    color: #fff;
}

.astra-brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(94, 95, 233, .14);
    border-radius: 13px;
    background: #e8ebff;
    color: #5559d9;
}

.astra-brand-light .astra-brand-mark {
    border-color: rgba(255, 255, 255, .23);
    background: rgba(255, 255, 255, .12);
    color: #aaf1e7;
}

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

.astra-story-main {
    margin: auto 0;
    padding: 80px 0;
}

.astra-story-eyebrow,
.astra-kicker {
    margin: 0 0 20px;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.astra-story-eyebrow {
    color: #84e3d6;
}

.astra-story-main h1 {
    max-width: 11em;
    margin: 0;
    font-size: clamp(42px, 4.2vw, 68px);
    font-weight: 730;
    letter-spacing: -.045em;
    line-height: 1.14;
}

.astra-story-description {
    max-width: 490px;
    margin: 24px 0 0;
    color: #bdd0e4;
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.8;
}

.astra-journey {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 52px;
}

.astra-journey-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border: 1px solid rgba(199, 225, 248, .19);
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #eef7ff;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.astra-journey-item span {
    color: #81dfd2;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .08em;
}

.astra-story-footer {
    color: #8daac9;
    font-size: 12px;
    font-weight: 580;
    letter-spacing: .02em;
}

.astra-story-footer span,
.astra-challenge-footer span {
    margin: 0 6px;
    color: #9eafc6;
}

.astra-entry {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 32px clamp(28px, 5vw, 76px) 27px;
}

.astra-entry-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 42px;
}

.astra-mobile-brand {
    display: none;
}

.astra-auth-page .login-language-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.astra-auth-page .login-language-bar button {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid #dfe6f0;
    border-radius: 11px;
    background: #fff;
    color: #5e6c82;
    cursor: pointer;
    opacity: 1;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.astra-auth-page .login-language-bar button:hover {
    border-color: #bfc7ee;
    background: #f4f5ff;
    color: #4b50c8;
}

.astra-auth-page .login-language-bar button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.astra-entry-main {
    display: grid;
    flex: 1;
    place-items: center;
    padding: 34px 0;
}

.astra-form-card {
    width: min(100%, 470px);
    padding: clamp(28px, 3.1vw, 48px);
    border: 1px solid #e5eaf2;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 28px 65px rgba(24, 43, 73, .07), 0 2px 8px rgba(24, 43, 73, .025);
}

.astra-kicker {
    margin-bottom: 13px;
    color: #5c60d7;
}

.astra-form-card h2,
.astra-challenge-card h1 {
    margin: 0;
    color: #172840;
    font-size: clamp(28px, 2.5vw, 35px);
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.22;
}

.astra-form-intro {
    margin: 13px 0 0;
    color: #6b7a8e;
    font-size: 14px;
    line-height: 1.7;
}

.astra-form-card form,
.astra-challenge-card form {
    margin-top: 34px;
}

.astra-field + .astra-field {
    margin-top: 21px;
}

.astra-field label {
    display: block;
    margin-bottom: 9px;
    color: #2b3a50;
    font-size: 13px;
    font-weight: 680;
}

.astra-field input {
    display: block;
    width: 100%;
    height: 49px;
    padding: 0 15px;
    border: 1px solid #dce4ee;
    border-radius: 11px;
    outline: none;
    background: #fbfcfe;
    color: #172840;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.astra-field input:hover {
    border-color: #b8c4d4;
}

.astra-field input:focus {
    border-color: #7779e5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(94, 95, 221, .12);
}

.astra-primary-button {
    display: flex;
    width: 100%;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 29px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, #5f62df, #4c4cc4);
    box-shadow: 0 10px 22px rgba(74, 77, 193, .22);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.astra-primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 24px rgba(74, 77, 193, .27);
    filter: brightness(1.04);
}

.astra-primary-button:focus-visible,
.astra-auth-page .login-language-bar button:focus-visible,
.astra-back-link:focus-visible {
    outline: 3px solid rgba(94, 95, 221, .4);
    outline-offset: 3px;
}

.astra-primary-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.astra-mfa-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 21px 0 0;
    color: #7a899d;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.astra-mfa-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.astra-error {
    margin-top: 24px;
    padding: 12px 14px;
    border: 1px solid #f5c7ce;
    border-radius: 10px;
    background: #fff5f6;
    color: #a3293c;
    font-size: 13px;
    line-height: 1.55;
}

.astra-entry-footer,
.astra-challenge-footer {
    color: #8a98aa;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.astra-challenge-layout {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px 20px;
    background: radial-gradient(circle at 20% 15%, rgba(94, 97, 224, .12), transparent 32%),
        radial-gradient(circle at 85% 85%, rgba(49, 185, 171, .11), transparent 27%),
        #f5f7fb;
}

.astra-challenge-shell {
    width: min(100%, 500px);
}

.astra-challenge-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.astra-challenge-card {
    padding: clamp(29px, 5vw, 46px);
    border: 1px solid #e5eaf2;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 28px 65px rgba(24, 43, 73, .07);
}

.astra-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #67758c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
}

.astra-step span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 8px;
    background: #ecedff;
    color: #5458ca;
    font-size: 11px;
}

.astra-shield {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    margin: 31px 0 23px;
    border-radius: 16px;
    background: #edf5f6;
    color: #279c9b;
}

.astra-shield svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.astra-enroll-title {
    margin-top: 28px !important;
}

.astra-enroll-secret {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    background: #f8fafd;
}

.astra-enroll-secret p {
    margin: 0 0 20px;
    color: #63758d;
    font-size: 13px;
    line-height: 1.6;
}

.astra-enroll-secret input[readonly] {
    background: #fff;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

.astra-code-input {
    text-align: center;
    letter-spacing: .28em;
    font-size: 23px !important;
    font-weight: 680 !important;
}

.astra-back-link {
    display: block;
    width: max-content;
    margin: 24px auto 0;
    color: #5b61ce;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

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

.astra-challenge-footer {
    margin-top: 24px;
}

@media (max-width: 920px) {
    .astra-layout {
        display: block;
    }

    .astra-story {
        display: none;
    }

    .astra-entry {
        min-height: 100vh;
        padding: 22px 24px;
    }

    .astra-entry-top {
        justify-content: space-between;
    }

    .astra-mobile-brand {
        display: inline-flex;
    }
}

@media (max-width: 540px) {
    .astra-entry {
        padding: 19px 18px 21px;
    }

    .astra-entry-main {
        padding: 32px 0;
    }

    .astra-form-card {
        padding: 29px 25px;
        border-radius: 19px;
    }

    .astra-challenge-layout {
        padding: 20px 17px;
    }

    .astra-challenge-header {
        margin-bottom: 19px;
    }

    .astra-challenge-card {
        padding: 29px 25px;
        border-radius: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .astra-auth-page *,
    .astra-auth-page *::before,
    .astra-auth-page *::after {
        transition-duration: .01ms !important;
    }
}
