/* Auth pages — same universe as landing, calmer and form-focused */

.landing-auth .landing-bg__nebula {
    opacity: 0.92;
}

.landing-auth .landing-bg__noise {
    opacity: 0.03;
}

.landing-auth-header {
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

.landing-auth-header .landing-brand__logo {
    width: 44px;
    height: 44px;
}

.landing-auth-header__back {
    font-size: 0.86rem;
}

.landing-auth-header__logout-form {
    margin: 0;
}

.landing-auth-header__logout {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 0.86rem;
    cursor: pointer;
}

.landing-auth-header__logout:hover {
    color: var(--landing-accent, #f472b6);
}

.landing-auth-main {
    align-items: flex-start;
    padding: 1.5rem 1.5rem 3rem;
}

.landing-auth {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.landing-auth-card {
    background: rgba(32, 38, 68, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 2rem 2.25rem;
}

.landing-auth-card--narrow {
    max-width: 440px;
    margin: 2rem auto 0;
}

.landing-auth-card--wide {
    margin-top: 0.5rem;
}

.landing-auth-card__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
}

.landing-auth-card__lead {
    margin: 0 0 1.75rem;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.landing-auth-card__hint {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 80, 130, 0.12);
    border: 1px solid rgba(255, 140, 180, 0.22);
    color: rgba(255, 220, 235, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
}

.landing-auth-card__footer {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.landing-auth-card__footer a {
    color: rgba(255, 180, 210, 0.95);
    text-decoration: none;
    font-weight: 500;
}

.landing-auth-card__footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.landing-auth .form-label,
.landing-auth label:not(.form-check-label) {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    font-weight: 500;
}

.landing-auth .form-control,
.landing-auth .form-select,
.landing-auth .input-group .form-control {
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    color: #1a1f36;
    -webkit-text-fill-color: #1a1f36;
    caret-color: #1a1f36;
    font-size: 0.92rem;
}

.landing-auth .form-control:-webkit-autofill,
.landing-auth .form-control:-webkit-autofill:hover,
.landing-auth .form-control:-webkit-autofill:focus,
.landing-auth .input-group .form-control:-webkit-autofill,
.landing-auth .input-group .form-control:-webkit-autofill:hover,
.landing-auth .input-group .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #1a1f36;
    caret-color: #1a1f36;
    transition: background-color 5000s ease-in-out 0s;
}

.landing-auth .form-select {
    color-scheme: dark;
}

.landing-auth .form-select option {
    background-color: #1e2444;
    color: rgba(255, 255, 255, 0.95);
}

.landing-auth .form-select option:checked,
.landing-auth .form-select option:hover {
    background-color: #01a9a6;
    color: #fff;
}

.landing-auth .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.landing-auth .form-control:focus,
.landing-auth .form-select:focus,
.landing-auth .input-group .form-control:focus {
    background-color: #fff;
    border-color: rgba(255, 140, 180, 0.65);
    box-shadow: 0 0 0 3px rgba(255, 80, 130, 0.18);
    color: #1a1f36;
    -webkit-text-fill-color: #1a1f36;
}

.landing-auth .form-check-label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

.landing-auth .form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.landing-auth .form-check-input:checked {
    background-color: #e8457a;
    border-color: #e8457a;
}

.landing-auth .invalid-feedback,
.landing-auth .help-block,
.landing-auth .hint-block {
    color: rgba(255, 160, 175, 0.95);
    font-size: 0.82rem;
}

.landing-auth .text-muted {
    color: rgba(255, 255, 255, 0.45) !important;
}

.landing-auth .text-muted a {
    color: rgba(255, 180, 210, 0.9);
}

.landing-auth .btn-primary,
.landing-auth .btn.btn-primary {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #e8356f 0%, #f04a82 100%);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 28px rgba(232, 53, 111, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-auth .btn-primary:hover,
.landing-auth .btn.btn-primary:hover {
    background: linear-gradient(135deg, #f04078 0%, #f55a90 100%);
    box-shadow: 0 10px 32px rgba(232, 53, 111, 0.38);
    transform: translateY(-1px);
}

.landing-auth-signup__pdn {
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-height: 72vh;
    overflow-y: auto;
}

.landing-auth-signup__pdn h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.landing-auth-signup__pdn label,
.landing-auth-signup__pdn .form-check-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
}

.landing-auth-signup__pdn hr {
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.landing-auth-signup__consent {
    margin: 1.25rem 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.5);
}

.landing-auth-signup__consent #reg_personal_data {
    color: rgba(255, 180, 210, 0.85);
}

.landing-auth .input-group-text {
    background: #f3f4f6;
    border-color: rgba(255, 255, 255, 0.28);
    color: #4b5563;
}

/* intl-tel-input: country names inherit light text from .landing-page */
.landing-auth .iti__country-list {
    background-color: #fff;
    color: #0b1f33;
}

.landing-auth .iti__country-name {
    color: #0b1f33;
}

.landing-auth .iti__country.iti__highlight {
    background-color: rgba(0, 0, 0, 0.06);
}

.landing-auth .iti__country.iti__highlight .iti__country-name {
    color: #0b1f33;
}

.landing-auth .kv-plugin-loading {
    background: transparent;
}

.landing-auth-captcha {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
}

.landing-auth-captcha__media {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.landing-auth-captcha__img {
    display: block;
    width: 148px;
    height: 48px;
    border-radius: 8px;
    cursor: pointer;
}

.landing-auth-captcha__hint {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

.landing-auth-captcha__field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.landing-auth-captcha__field .form-control {
    height: 100%;
    min-height: 48px;
}

@media (max-width: 991px) {
    .landing-auth-card {
        padding: 1.5rem 1.25rem;
    }

    .landing-auth-card--narrow {
        margin-top: 1rem;
    }

    .landing-auth-signup__pdn {
        max-height: none;
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    .landing-auth-main {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .landing-auth-header__back {
        display: none;
    }

    .landing-auth-captcha {
        flex-direction: column;
    }

    .landing-auth-captcha__media {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
}
