@font-face {
    font-family: "AuthSten";
    src: url("/static/fonts/Stengazeta-Regular_5.ttf") format("truetype");
    font-display: swap;
}

:root {
    --auth_color_canvas: #0a1216;
    --auth_color_canvas_warm: #111b20;
    --auth_color_surface: #ffffff;
    --auth_color_surface_soft: #f8fafb;
    --auth_color_text: #13212b;
    --auth_color_muted: #667684;
    --auth_color_faint: #94a1ab;
    --auth_color_line: #d9e1e6;
    --auth_color_line_strong: #c6d2da;
    --auth_color_brand: #0d675f;
    --auth_color_brand_deep: #082f35;
    --auth_color_brand_soft: #e4f1ef;
    --auth_color_accent: #9d8054;
    --auth_color_error: #b42338;
    --auth_color_error_soft: #fff1f3;
    --auth_color_success: #087443;
    --auth_color_success_soft: #eefaf3;
    --auth_shadow_panel: 0 30px 74px rgba(0, 0, 0, 0.34);
    --auth_shadow_button: 0 18px 34px rgba(13, 99, 116, 0.24);
    --auth_radius_outer: 28px;
    --auth_radius_panel: 18px;
    --auth_radius_control: 14px;
    --auth_font_ui: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    --auth_font_brand: "AuthSten", "Aptos", sans-serif;
}

* {
    box-sizing: border-box;
}

.auth_ui_body {
    min-height: 100vh;
    margin: 0;
    color: var(--auth_color_text);
    background:
        radial-gradient(circle at 18% 18%, rgba(13, 103, 95, 0.22), transparent 30%),
        radial-gradient(circle at 88% 82%, rgba(157, 128, 84, 0.13), transparent 28%),
        linear-gradient(135deg, var(--auth_color_canvas), var(--auth_color_canvas_warm));
    font-family: var(--auth_font_ui);
}

.auth_ui_shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px;
}

.auth_ui_card {
    width: min(1120px, 100%);
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
    overflow: hidden;
    border: 0;
    border-radius: var(--auth_radius_outer);
    background: transparent;
    box-shadow: var(--auth_shadow_panel);
    animation: auth_ui_enter 360ms ease-out both;
}

.auth_ui_brand {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 44px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.1), transparent 24%),
        radial-gradient(circle at 12% 88%, rgba(157, 128, 84, 0.18), transparent 28%),
        linear-gradient(150deg, #0d514e, #0a2f35 55%, #07191f);
}

.auth_ui_brand::before {
    content: none;
    position: absolute;
    inset: 18px;
    border: 0;
    border-radius: 22px;
    pointer-events: none;
}

.auth_ui_brand::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -220px;
    bottom: -210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 67%);
    pointer-events: none;
}

.auth_ui_filler_scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #06151b;
    pointer-events: none;
}

.auth_ui_filler_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 32% center;
    filter: saturate(1.05) contrast(1.05) brightness(0.9);
    transform: scale(1.012);
    animation: auth_filler_image_breathe 8s ease-in-out infinite;
}

.auth_ui_filler_scene::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(7, 25, 31, 0.18), transparent 31%, rgba(7, 25, 31, 0.62)),
        linear-gradient(90deg, rgba(7, 25, 31, 0.02), rgba(7, 25, 31, 0.48));
    animation: auth_filler_brightness 7s ease-in-out infinite;
}

.auth_ui_filler_scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        repeating-linear-gradient(180deg, rgba(151, 239, 246, 0.06) 0 1px, transparent 1px 7px),
        radial-gradient(circle at 22% 30%, rgba(151, 239, 246, 0.13), transparent 28%);
    mix-blend-mode: screen;
    opacity: 0.56;
}

.auth_ui_filler_scan,
.auth_ui_filler_artifact,
.auth_ui_filler_vignette {
    position: absolute;
}

.auth_ui_filler_scan {
    left: 0;
    right: 0;
    z-index: 5;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(143, 238, 246, 0.8), transparent);
    box-shadow: 0 0 16px rgba(143, 238, 246, 0.42);
    opacity: 0;
    animation: auth_filler_scan_drop 4.2s linear infinite;
}

.auth_ui_filler_scan_one {
    top: -8%;
}

.auth_ui_filler_scan_two {
    top: -22%;
    animation-delay: 1.45s;
}

.auth_ui_filler_artifact {
    z-index: 6;
    background: rgba(148, 238, 244, 0.76);
    box-shadow: 0 0 18px rgba(148, 238, 244, 0.38);
    opacity: 0.3;
    animation: auth_filler_artifact_flicker 2.4s steps(2, end) infinite;
}

.auth_ui_filler_artifact_dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
}

.auth_ui_filler_artifact_dot_one {
    left: 18%;
    top: 35%;
}

.auth_ui_filler_artifact_dot_two {
    right: 21%;
    top: 68%;
    animation-delay: 680ms;
}

.auth_ui_filler_artifact_dash {
    width: 48px;
    height: 2px;
    border-radius: 999px;
}

.auth_ui_filler_artifact_dash_one {
    left: 11%;
    top: 73%;
    animation-delay: 1.1s;
}

.auth_ui_filler_artifact_dash_two {
    right: 12%;
    top: 42%;
    width: 34px;
    animation-delay: 420ms;
}

.auth_ui_filler_vignette {
    inset: 0;
    z-index: 7;
    background:
        radial-gradient(circle at 30% 36%, transparent 0 36%, rgba(4, 14, 18, 0.28) 70%),
        linear-gradient(180deg, rgba(4, 14, 18, 0.16), rgba(4, 14, 18, 0.68));
}

.auth_ui_brand_top,
.auth_ui_brand_copy,
.auth_ui_signal_grid,
.auth_ui_trust_list {
    position: relative;
    z-index: 4;
}

.auth_ui_brand_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.auth_ui_logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.auth_ui_logo_mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--auth_font_brand);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.auth_ui_logo_mark_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.auth_ui_logo_text {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth_ui_security_badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.09);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.auth_ui_brand_copy {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.auth_ui_eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.auth_ui_brand_title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 860;
    letter-spacing: -0.058em;
    line-height: 0.96;
}

.auth_ui_brand_text {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.62;
}

.auth_ui_signal_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 280px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.06);
    background-size: 18px 18px;
}

.auth_ui_signal_line {
    height: 42px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.24)),
        linear-gradient(135deg, transparent 0 42%, rgba(184, 117, 69, 0.72) 42% 48%, transparent 48% 100%);
}

.auth_ui_trust_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth_ui_trust_item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
}

.auth_ui_trust_dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--auth_color_accent);
    box-shadow: 0 0 0 5px rgba(184, 117, 69, 0.16);
}

.auth_ui_trust_text {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.45;
}

.auth_ui_panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 54px 58px;
    background: var(--auth_color_surface);
}

.auth_ui_form_header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth_ui_step {
    width: fit-content;
    margin: 0;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--auth_color_brand_deep);
    background: var(--auth_color_brand_soft);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth_ui_form_title {
    margin: 0;
    color: var(--auth_color_text);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 860;
    letter-spacing: -0.046em;
    line-height: 1.02;
}

.auth_ui_form_description {
    max-width: 520px;
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 16px;
    line-height: 1.58;
}

.auth_ui_alert {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 15px;
    border-radius: var(--auth_radius_control);
    font-size: 14px;
    line-height: 1.42;
}

.auth_ui_alert_error {
    color: var(--auth_color_error);
    border: 1px solid rgba(180, 35, 56, 0.18);
    background: var(--auth_color_error_soft);
}

.auth_ui_alert_success {
    color: var(--auth_color_success);
    border: 1px solid rgba(8, 116, 67, 0.18);
    background: var(--auth_color_success_soft);
}

.auth_ui_alert_title {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth_ui_alert_text {
    font-size: 14px;
    font-weight: 650;
}

.auth_ui_form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth_ui_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth_ui_label {
    color: var(--auth_color_text);
    font-size: 14px;
    font-weight: 850;
}

.auth_ui_input {
    width: 100%;
    min-height: 54px;
    padding: 15px 16px;
    border: 1px solid var(--auth_color_line);
    border-radius: var(--auth_radius_control);
    outline: none;
    color: var(--auth_color_text);
    background: var(--auth_color_surface_soft);
    font-family: var(--auth_font_ui);
    font-size: 16px;
    letter-spacing: 0;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth_ui_input::placeholder {
    color: var(--auth_color_faint);
}

.auth_ui_input:hover {
    border-color: var(--auth_color_line_strong);
}

.auth_ui_input:focus {
    border-color: rgba(13, 99, 116, 0.78);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 99, 116, 0.12);
}

.auth_ui_code_input {
    min-height: 68px;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: 0.34em;
    text-align: center;
}

.auth_ui_code_input::placeholder {
    letter-spacing: 0.28em;
}

.auth_ui_password_control {
    position: relative;
    display: block;
}

.auth_ui_password_input {
    padding-right: 58px;
}

.auth_ui_password_toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--auth_color_brand);
    background: transparent;
    font-family: var(--auth_font_ui);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.auth_ui_password_toggle:hover {
    color: var(--auth_color_brand_deep);
    background: rgba(13, 103, 95, 0.08);
}

.auth_ui_password_toggle:focus-visible {
    color: var(--auth_color_brand_deep);
    background: rgba(13, 103, 95, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 99, 116, 0.14);
    outline: none;
}

.auth_ui_password_icon {
    width: 20px;
    height: 20px;
    display: block;
}

.auth_ui_password_icon_eye,
.auth_ui_password_icon_pupil,
.auth_ui_password_icon_slash {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth_ui_password_icon_slash {
    opacity: 0;
    transition: opacity 140ms ease;
}

.auth_ui_password_toggle.is_visible .auth_ui_password_icon_slash {
    opacity: 1;
}

.auth_ui_hint_control {
    position: relative;
    display: block;
}

.auth_ui_hint_input {
    padding-right: 58px;
}

.auth_ui_hint_toggle {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--auth_color_brand);
    background: transparent;
    cursor: help;
    transform: translateY(-50%);
    transition:
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.auth_ui_hint_toggle:hover {
    color: var(--auth_color_brand_deep);
    background: rgba(13, 103, 95, 0.08);
}

.auth_ui_hint_toggle:focus-visible {
    color: var(--auth_color_brand_deep);
    background: rgba(13, 103, 95, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 99, 116, 0.14);
    outline: none;
}

.auth_ui_hint_icon {
    width: 20px;
    height: 20px;
    display: block;
}

.auth_ui_hint_icon_circle,
.auth_ui_hint_icon_line,
.auth_ui_hint_icon_dot {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth_ui_hint_icon_dot {
    fill: currentColor;
    stroke: none;
}

.auth_ui_hint_tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    z-index: 8;
    width: min(280px, calc(100vw - 48px));
    padding: 12px 14px;
    border: 1px solid rgba(13, 99, 116, 0.16);
    border-radius: 12px;
    color: var(--auth_color_text);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 34px rgba(10, 18, 22, 0.12);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.auth_ui_hint_control:hover .auth_ui_hint_tooltip,
.auth_ui_hint_control:focus-within .auth_ui_hint_tooltip {
    opacity: 1;
    transform: translateY(0);
}

.auth_ui_form_meta {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth_ui_link {
    color: var(--auth_color_brand);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: color 160ms ease;
}

.auth_ui_link:hover,
.auth_ui_link:focus-visible {
    color: var(--auth_color_brand_deep);
    outline: none;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.auth_ui_primary_button,
.auth_ui_secondary_button,
.auth_ui_provider_button {
    min-height: 54px;
    border-radius: var(--auth_radius_control);
    font-family: var(--auth_font_ui);
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        opacity 160ms ease;
}

.auth_ui_primary_button {
    width: 100%;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth_color_brand), var(--auth_color_brand_deep));
    box-shadow: var(--auth_shadow_button);
}

.auth_ui_primary_button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 38px rgba(13, 99, 116, 0.28);
}

.auth_ui_primary_button:active,
.auth_ui_secondary_button:active,
.auth_ui_provider_button:active {
    transform: translateY(0);
}

.auth_ui_primary_button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.auth_ui_secondary_button {
    width: 100%;
    border: 1px solid rgba(13, 99, 116, 0.24);
    color: var(--auth_color_brand_deep);
    background: var(--auth_color_brand_soft);
}

.auth_ui_secondary_button:hover {
    border-color: rgba(13, 99, 116, 0.36);
    background: #dceef1;
}

.auth_ui_primary_button:focus-visible,
.auth_ui_secondary_button:focus-visible,
.auth_ui_provider_button:focus-visible {
    outline: 0;
    box-shadow:
        0 0 0 4px rgba(13, 99, 116, 0.14),
        var(--auth_shadow_button);
}

.auth_ui_divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.auth_ui_divider_line {
    height: 1px;
    background: var(--auth_color_line);
}

.auth_ui_divider_text {
    color: var(--auth_color_faint);
    font-size: 13px;
    font-weight: 750;
}

.auth_ui_provider_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth_ui_provider_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--auth_color_line);
    color: var(--auth_color_text);
    background: #ffffff;
}

.auth_ui_provider_button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.auth_ui_provider_icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: var(--auth_color_brand_deep);
    background: var(--auth_color_brand_soft);
    font-size: 12px;
    font-weight: 900;
}

.auth_ui_footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 2px;
}

.auth_ui_registration {
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 14px;
    text-align: center;
}

.auth_ui_legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}

.auth_ui_legal_link {
    color: var(--auth_color_faint);
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
    transition: color 160ms ease;
}

.auth_ui_legal_link:hover,
.auth_ui_legal_link:focus-visible {
    color: var(--auth_color_brand);
    outline: none;
}

.auth_ui_info_card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px 20px;
    border: 1px solid var(--auth_color_line);
    border-radius: var(--auth_radius_panel);
    background: var(--auth_color_surface_soft);
}

.auth_ui_info_title {
    margin: 0 0 8px;
    color: var(--auth_color_text);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth_ui_info_row {
    display: grid;
    grid-template-columns: minmax(120px, 0.86fr) minmax(120px, 1.14fr);
    gap: 18px;
    padding: 14px 0;
    border-top: 1px solid var(--auth_color_line);
}

.auth_ui_info_label {
    color: var(--auth_color_muted);
    font-size: 14px;
}

.auth_ui_info_value {
    color: var(--auth_color_text);
    font-size: 14px;
    font-weight: 850;
    text-align: right;
    word-break: break-word;
}

.auth_ui_notice {
    padding: 15px 16px;
    border: 1px solid rgba(13, 99, 116, 0.16);
    border-left: 5px solid var(--auth_color_brand);
    border-radius: var(--auth_radius_control);
    color: var(--auth_color_brand_deep);
    background: var(--auth_color_brand_soft);
    font-size: 14px;
    line-height: 1.55;
}

.auth_ui_helper {
    color: var(--auth_color_faint);
    font-size: 13px;
    line-height: 1.55;
}

.auth_ui_field_error {
    min-height: 18px;
    color: var(--auth_color_error);
    font-size: 13px;
    line-height: 1.45;
}

.auth_ui_field_error:empty::before {
    content: "\00a0";
}

.auth_ui_input[aria-invalid="true"] {
    border-color: rgba(180, 35, 56, 0.42);
    background: var(--auth_color_error_soft);
}

.auth_ui_input[aria-invalid="true"]:focus {
    border-color: rgba(180, 35, 56, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(180, 35, 56, 0.12);
}

.auth_reg_name_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth_reg_nick_helper_code {
    color: var(--auth_color_text);
    font-weight: 700;
}

.auth_ui_logout_form {
    margin: 0;
}

.auth_home_panel_shell {
    gap: 24px;
}

.auth_home_filler_image {
    object-position: 34% center;
}

.auth_home_toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.auth_home_scope_badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(13, 99, 116, 0.14);
    border-radius: 999px;
    background: rgba(13, 103, 95, 0.06);
}

.auth_home_scope_badge_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--auth_color_brand);
    box-shadow: 0 0 0 5px rgba(13, 103, 95, 0.12);
}

.auth_home_scope_badge_text {
    color: var(--auth_color_brand_deep);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth_home_toolbar_note {
    margin: 0;
    color: var(--auth_color_faint);
    font-size: 13px;
    line-height: 1.5;
}

.auth_home_overview_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth_home_metric_card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 18px 18px 16px;
    border: 1px solid var(--auth_color_line);
    border-radius: var(--auth_radius_panel);
    background:
        linear-gradient(160deg, rgba(13, 103, 95, 0.06), rgba(13, 103, 95, 0.012)),
        var(--auth_color_surface_soft);
}

.auth_home_metric_label {
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth_home_metric_value {
    margin: 0;
    color: var(--auth_color_text);
    font-size: 34px;
    font-weight: 860;
    letter-spacing: -0.05em;
    line-height: 1;
}

.auth_home_metric_hint {
    margin: auto 0 0;
    color: var(--auth_color_faint);
    font-size: 13px;
    line-height: 1.45;
}

.auth_home_section_header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.auth_home_section_copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.auth_home_section_title {
    margin: 0;
    color: var(--auth_color_text);
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.auth_home_section_text {
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth_home_session_list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth_home_session_card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 18px 22px;
    border: 1px solid var(--auth_color_line);
    border-radius: var(--auth_radius_panel);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 251, 0.98)),
        var(--auth_color_surface_soft);
    box-shadow: 0 16px 28px rgba(10, 18, 22, 0.04);
}

.auth_home_session_card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--auth_color_brand), rgba(13, 103, 95, 0.18));
}

.auth_home_session_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.auth_home_session_service_block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth_home_session_service_badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border: 1px solid rgba(13, 99, 116, 0.16);
    border-radius: 999px;
    color: var(--auth_color_brand_deep);
    background: rgba(13, 103, 95, 0.08);
    font-size: 11px;
    font-weight: 840;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth_home_session_device_title {
    margin: 0;
    color: var(--auth_color_text);
    font-size: 20px;
    font-weight: 860;
    letter-spacing: -0.04em;
}

.auth_home_session_device_subtitle {
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth_home_session_state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 12px;
    border: 1px solid rgba(8, 116, 67, 0.14);
    border-radius: 999px;
    color: var(--auth_color_success);
    background: var(--auth_color_success_soft);
}

.auth_home_session_state_dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(8, 116, 67, 0.12);
}

.auth_home_session_state_text {
    font-size: 12px;
    font-weight: 820;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth_home_session_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth_home_session_tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--auth_color_line);
    border-radius: 999px;
    color: var(--auth_color_muted);
    background: #ffffff;
    font-size: 12px;
    font-weight: 720;
}

.auth_home_session_detail_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.auth_home_session_detail {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 86px;
    padding: 14px 15px;
    border: 1px solid var(--auth_color_line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.auth_home_session_detail_label {
    margin: 0;
    color: var(--auth_color_faint);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth_home_session_detail_value {
    margin: 0;
    color: var(--auth_color_text);
    font-size: 15px;
    font-weight: 780;
    line-height: 1.5;
}

.auth_home_empty_state {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 20px;
    border: 1px solid var(--auth_color_line);
    border-radius: var(--auth_radius_panel);
    background: var(--auth_color_surface_soft);
}

.auth_home_empty_state_title {
    margin: 0;
    color: var(--auth_color_text);
    font-size: 18px;
    font-weight: 830;
    letter-spacing: -0.03em;
}

.auth_home_empty_state_text {
    margin: 0;
    color: var(--auth_color_muted);
    font-size: 14px;
    line-height: 1.55;
}

.auth_home_notice {
    padding: 16px 18px;
    border: 1px solid rgba(13, 99, 116, 0.12);
    border-left: 5px solid var(--auth_color_brand);
    border-radius: var(--auth_radius_control);
    color: var(--auth_color_brand_deep);
    background:
        linear-gradient(135deg, rgba(13, 103, 95, 0.07), rgba(13, 103, 95, 0.015)),
        var(--auth_color_brand_soft);
    font-size: 14px;
    line-height: 1.6;
}

.auth_home_action_stack {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px;
}

.auth_home_action_stack .auth_ui_secondary_button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.auth_home_footer {
    margin-top: auto;
}

.auth_login_form.is_submitting .auth_ui_input {
    pointer-events: none;
}

@keyframes auth_ui_enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes auth_filler_image_breathe {
    0%,
    100% {
        filter: saturate(1.05) contrast(1.05) brightness(0.9);
        transform: scale(1.012);
    }
    48% {
        filter: saturate(1.12) contrast(1.08) brightness(1.02);
        transform: scale(1.026) translate3d(4px, -3px, 0);
    }
}

@keyframes auth_filler_brightness {
    0%,
    100% {
        opacity: 0.86;
    }
    44% {
        opacity: 0.62;
    }
    68% {
        opacity: 0.92;
    }
}

@keyframes auth_filler_scan_drop {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    14% {
        opacity: 0.66;
    }
    72% {
        opacity: 0.42;
    }
    100% {
        opacity: 0;
        transform: translateY(760px);
    }
}

@keyframes auth_filler_artifact_flicker {
    0%,
    100% {
        opacity: 0.16;
    }
    42% {
        opacity: 0.78;
    }
    58% {
        opacity: 0.32;
    }
}

@media (max-width: 980px) {
    .auth_ui_shell {
        padding: 22px;
    }

    .auth_ui_card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth_ui_brand {
        min-height: 360px;
    }

    .auth_ui_filler_image {
        object-position: 30% center;
    }

    .auth_home_filler_image {
        object-position: 33% center;
    }

    .auth_ui_signal_grid {
        display: none;
    }

}

@media (max-width: 640px) {
    .auth_ui_shell {
        padding: 0;
        place-items: stretch;
    }

    .auth_ui_card {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .auth_ui_brand {
        min-height: 260px;
        padding: 26px 22px;
        gap: 24px;
    }

    .auth_ui_filler_image {
        object-position: 28% center;
    }

    .auth_home_filler_image {
        object-position: 30% center;
    }

    .auth_home_overview_grid {
        grid-template-columns: 1fr;
    }

    .auth_home_section_header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth_home_session_head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth_home_session_detail_grid {
        grid-template-columns: 1fr;
    }

    .auth_home_action_stack {
        grid-template-columns: 1fr;
    }

    .auth_ui_brand_top {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth_ui_brand_title {
        font-size: 38px;
    }

    .auth_ui_trust_list {
        display: none;
    }

    .auth_ui_panel {
        padding: 30px 22px;
    }

    .auth_ui_form_title {
        font-size: 32px;
    }

    .auth_ui_provider_grid {
        grid-template-columns: 1fr;
    }

    .auth_reg_name_grid {
        grid-template-columns: 1fr;
    }

    .auth_ui_info_row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .auth_ui_info_value {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth_ui_filler_image,
    .auth_ui_filler_scene::before,
    .auth_ui_filler_scan,
    .auth_ui_filler_artifact {
        animation: none;
    }
}
