:root {
    color-scheme: dark;
    --lb-auth-bg: #020406;
    --lb-auth-bg-middle: #07111d;
    --lb-auth-surface: rgba(8, 13, 20, 0.82);
    --lb-auth-surface-hover: rgba(17, 26, 39, 0.94);
    --lb-auth-border: rgba(255, 255, 255, 0.12);
    --lb-auth-border-hover: rgba(86, 204, 255, 0.52);
    --lb-auth-text: #f4f7fb;
    --lb-auth-muted: #93a3b8;
    --lb-auth-white: #ffffff;
    --lb-auth-blue: #1d9bf0;
    --lb-auth-blue-light: #56ccff;
    --lb-auth-violet: #8b5cf6;
    --lb-auth-pink: #ff3d8b;
    --lb-auth-green: #21e6a3;
    --lb-auth-danger-bg: rgba(255, 77, 109, 0.13);
    --lb-auth-danger-border: rgba(255, 77, 109, 0.48);
    --lb-auth-danger-text: #ff8ca1;
    --lb-auth-radius: 26px;
    --lb-auth-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--lb-auth-bg);
}

body.lb-auth-body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(29, 155, 240, 0.26), transparent 30%),
        radial-gradient(circle at 78% 20%, rgba(139, 92, 246, 0.22), transparent 34%),
        radial-gradient(circle at 62% 86%, rgba(255, 61, 139, 0.13), transparent 32%),
        linear-gradient(135deg, var(--lb-auth-bg) 0%, var(--lb-auth-bg-middle) 46%, var(--lb-auth-bg) 100%);
    color: var(--lb-auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.lb-auth-page {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lb-auth-page::before,
.lb-auth-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.lb-auth-page::before {
    inset: -20%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
    background-size: 62px 62px;
    -webkit-mask-image: radial-gradient(circle at 50% 44%, #000, transparent 68%);
    mask-image: radial-gradient(circle at 50% 44%, #000, transparent 68%);
    opacity: 0.66;
}

.lb-auth-page::after {
    width: 520px;
    height: 520px;
    right: -210px;
    bottom: -220px;
    border-radius: 50%;
    background: rgba(255, 61, 139, 0.12);
    filter: blur(55px);
}

.lb-auth-main {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: auto;
    padding: 42px 0 30px;
}

.lb-auth-brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 34px;
    text-align: center;
}

.lb-auth-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 18px;
    outline: none;
}

.lb-auth-brand-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(86, 204, 255, 0.36);
}

.lb-auth-brand-logo {
    display: block;
    width: min(278px, 72vw);
    height: auto;
    max-height: 92px;
    object-fit: contain;
    filter: drop-shadow(0 16px 42px rgba(29, 155, 240, 0.24));
}

.lb-auth-brand-title {
    margin: 27px 0 0;
    color: var(--lb-auth-white);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.055em;
    text-shadow: 0 12px 40px rgba(29, 155, 240, 0.16);
}

.lb-auth-brand-subtitle {
    max-width: 650px;
    margin: 15px auto 0;
    color: var(--lb-auth-muted);
    font-size: clamp(0.98rem, 1.6vw, 1.08rem);
    font-weight: 400;
    line-height: 1.55;
}

.lb-auth-alert {
    width: min(860px, 100%);
    margin: 0 auto 22px;
    padding: 13px 16px;
    border: 1px solid var(--lb-auth-danger-border);
    border-radius: 14px;
    background: var(--lb-auth-danger-bg);
    color: var(--lb-auth-danger-text);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
    backdrop-filter: blur(16px);
}

.lb-auth-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.lb-auth-card {
    position: relative;
    min-width: 0;
    min-height: 392px;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid transparent;
    border-radius: var(--lb-auth-radius);
    background:
        linear-gradient(var(--lb-auth-surface), var(--lb-auth-surface)) padding-box,
        linear-gradient(135deg, rgba(86, 204, 255, 0.68), rgba(139, 92, 246, 0.42), rgba(255, 61, 139, 0.38)) border-box;
    box-shadow:
        var(--lb-auth-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(24px);
    overflow: hidden;
    isolation: isolate;
}

.lb-auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(86, 204, 255, 0.14), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(255, 61, 139, 0.08), transparent 42%);
}

.lb-auth-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    right: -95px;
    top: -95px;
    z-index: -1;
    border-radius: 50%;
    background: rgba(29, 155, 240, 0.16);
    filter: blur(8px);
    pointer-events: none;
}

.lb-auth-card-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    border: 1px solid rgba(86, 204, 255, 0.36);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.22), rgba(139, 92, 246, 0.19));
    color: #dff5ff;
    box-shadow: 0 14px 36px rgba(29, 155, 240, 0.18);
}

.lb-auth-card-icon svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: currentColor;
}

.lb-auth-card-kicker {
    margin: 0 0 8px;
    color: var(--lb-auth-blue-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lb-auth-card-title {
    margin: 0;
    color: var(--lb-auth-white);
    font-size: clamp(1.65rem, 2.7vw, 2.18rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.lb-auth-card-text {
    margin: 15px 0 30px;
    color: var(--lb-auth-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.lb-auth-card-action {
    margin-top: auto;
}

.lb-auth-google-button {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background: var(--lb-auth-white);
    color: #202124;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(29, 155, 240, 0.16);
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lb-auth-google-button:hover {
    border-color: var(--lb-auth-blue-light);
    background: #f7fbff;
    color: #202124;
    transform: translateY(-2px);
    box-shadow:
        0 15px 38px rgba(29, 155, 240, 0.24),
        0 0 0 3px rgba(86, 204, 255, 0.11);
}

.lb-auth-google-button:active {
    transform: translateY(0);
}

.lb-auth-google-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(86, 204, 255, 0.38);
}

.lb-auth-google-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
}

.lb-auth-card-note {
    margin: 14px 0 0;
    color: var(--lb-auth-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.lb-auth-card-note a {
    color: var(--lb-auth-blue-light);
    text-decoration: none;
}

.lb-auth-card-note a:hover {
    color: var(--lb-auth-white);
    text-decoration: underline;
}

.lb-auth-language {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 28px auto 0;
}

.lb-auth-language-link {
    min-width: 37px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--lb-auth-muted);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.lb-auth-language-link:hover {
    border-color: rgba(86, 204, 255, 0.30);
    background: rgba(29, 155, 240, 0.10);
    color: var(--lb-auth-white);
}

.lb-auth-language-link.lb-auth-language-link-active {
    border-color: rgba(86, 204, 255, 0.54);
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.23), rgba(139, 92, 246, 0.18));
    color: var(--lb-auth-white);
    box-shadow: 0 8px 24px rgba(29, 155, 240, 0.16);
}

.lb-auth-footer {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 18px;
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--lb-auth-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.lb-auth-footer-link {
    color: var(--lb-auth-muted);
    text-decoration: none;
}

.lb-auth-footer-link:hover {
    color: var(--lb-auth-blue-light);
    text-decoration: underline;
}

.lb-auth-footer-copy {
    color: var(--lb-auth-muted);
}

@media (max-width: 900px) {
    .lb-auth-main {
        width: min(760px, calc(100% - 36px));
        padding-top: 34px;
    }

    .lb-auth-brand {
        margin-bottom: 27px;
    }

    .lb-auth-cards {
        gap: 18px;
    }

    .lb-auth-card {
        min-height: 374px;
        padding: 28px;
    }
}

@media (max-width: 680px) {
    .lb-auth-main {
        width: min(520px, calc(100% - 28px));
        padding: 24px 0 18px;
    }

    .lb-auth-brand {
        margin-bottom: 22px;
    }

    .lb-auth-brand-logo {
        width: min(240px, 72vw);
        max-height: 76px;
    }

    .lb-auth-brand-title {
        margin-top: 21px;
    }

    .lb-auth-brand-subtitle {
        margin-top: 11px;
    }

    .lb-auth-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lb-auth-card {
        min-height: 330px;
        padding: 25px 22px;
        border-radius: 21px;
    }

    .lb-auth-card-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 21px;
    }

    .lb-auth-card-text {
        margin: 12px 0 24px;
    }

    .lb-auth-language {
        margin-top: 22px;
    }

    .lb-auth-footer {
        width: calc(100% - 28px);
        padding: 14px 0 22px;
    }
}

@media (max-width: 390px) {
    .lb-auth-main {
        width: calc(100% - 20px);
    }

    .lb-auth-card {
        padding: 23px 18px;
    }

    .lb-auth-google-button {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 0.93rem;
    }

    .lb-auth-footer {
        width: calc(100% - 20px);
        gap: 7px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb-auth-google-button,
    .lb-auth-language-link {
        transition: none;
    }
}

.lb-auth-google-button span {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: center;
}
