.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 170px 0 80px;
    background: #0b1220;
}

.auth-background,
.auth-background video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-background {
    z-index: 1;
}

.auth-background video {
    object-fit: cover;
    opacity: 0.34;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(circle at 20% 20%, rgba(214, 40, 40, 0.32), transparent 34%),
        radial-gradient(circle at 78% 30%, rgba(10, 69, 131, 0.42), transparent 36%),
        linear-gradient(135deg, rgba(5, 10, 20, 0.94), rgba(6, 18, 34, 0.88));
}

.auth-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 42px;
    align-items: center;
}

.auth-intro {
    max-width: 620px;
    color: #ffffff;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: "Jason Becker Light", Arial, sans-serif;
    letter-spacing: 0.02em;
}

.auth-intro h1 {
    margin: 24px 0 18px;
    font-family: "Grandview", Arial, sans-serif;
    font-size: clamp(2.1rem, 4vw, 4.9rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.auth-intro p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-family: "GrandviewLightItalic", Arial, sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
}

.auth-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.auth-benefit-card {
    min-height: 120px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-benefit-card span {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.52);
    font-family: "Jason Becker Light", Arial, sans-serif;
}

.auth-benefit-card p {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.35;
}

.auth-card {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    justify-self: end;
    padding: 34px;
    border-radius: 34px;
    background: rgba(12, 22, 38, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-card-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(214, 40, 40, 0.46), transparent 68%);
    pointer-events: none;
}

.auth-logo-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.auth-logo-wrap img {
    width: 122px;
    height: auto;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.36));
}

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-family: "Jason Becker Light", Arial, sans-serif;
    font-size: 1rem;
    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.auth-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.auth-tab.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d62828, #0a4583);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.auth-message {
    display: none;
    margin: 18px 0 0;
    padding: 13px 15px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Grandview", Arial, sans-serif;
    font-size: 0.94rem;
    line-height: 1.45;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.auth-message.show {
    display: block;
}

.auth-message.info {
    background: rgba(10, 69, 131, 0.22);
}

.auth-message.success {
    background: rgba(57, 255, 136, 0.12);
    border-color: rgba(57, 255, 136, 0.26);
    color: #baffd2;
}

.auth-message.warning {
    background: rgba(242, 140, 40, 0.14);
    border-color: rgba(242, 140, 40, 0.26);
    color: #ffd6a7;
}

.auth-message.error {
    background: rgba(214, 40, 40, 0.16);
    border-color: rgba(214, 40, 40, 0.34);
    color: #ffc3c3;
}

.auth-form {
    display: none;
    margin-top: 22px;
}

.auth-form.active {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-family: "Grandview", Arial, sans-serif;
    font-size: 0.95rem;
}

.auth-field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font: inherit;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.auth-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.auth-field input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.11);
    box-shadow:
        0 0 0 4px rgba(10, 69, 131, 0.20),
        0 0 24px rgba(10, 69, 131, 0.18);
}

.auth-submit {
    width: 100%;
    margin-top: 4px;
    border: none;
    cursor: pointer;
}

.auth-submit:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.auth-link-button {
    justify-self: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    font-family: "Jason Becker Light", Arial, sans-serif;
    font-size: 0.98rem;
    transition: color 0.22s ease;
}

.auth-link-button:hover {
    color: #ffffff;
}

.auth-user-panel {
    margin-top: 24px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.auth-user-label {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.62);
    font-family: "GrandviewLightItalic", Arial, sans-serif;
}

.auth-user-panel strong {
    display: block;
    color: #ffffff;
    word-break: break-word;
}

.auth-user-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.auth-user-actions .btn {
    min-width: 132px;
}

@media (max-width: 1000px) {
    .auth-page {
        padding: 150px 0 60px;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-intro {
        max-width: 760px;
        text-align: center;
        margin: 0 auto;
    }

    .auth-intro p {
        margin: 0 auto;
    }

    .auth-card {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .auth-page {
        padding: 124px 0 44px;
    }

    .auth-container {
        gap: 26px;
    }

    .auth-benefits {
        grid-template-columns: 1fr;
    }

    .auth-benefit-card {
        min-height: auto;
        text-align: left;
    }

    .auth-card {
        padding: 24px;
        border-radius: 26px;
    }

    .auth-logo-wrap img {
        width: 100px;
    }
}

@media (max-width: 430px) {
    .auth-card {
        padding: 20px;
    }

    .auth-user-actions {
        display: grid;
    }

    .auth-user-actions .btn {
        width: 100%;
    }
}

.auth-google-button {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    margin-top: 18px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #162033;
    cursor: pointer;
    font-family: "Grandview", Arial, sans-serif;
    font-size: 0.98rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.22s ease;
}

.auth-google-button:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

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

.auth-google-button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.auth-google-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.auth-google-icon svg {
    width: 100%;
    height: 100%;
}

.auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-family: "Jason Becker Light", Arial, sans-serif;
    font-size: 0.92rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 12px;
}