.auth-page {
    --auth-navy: #0b1f3a;
    --auth-blue: #2563eb;
    --auth-blue-hover: #1d4ed8;
    --auth-cyan: #0ea5e9;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-bg: #f4f6fb;
    --auth-input: #eef2f7;
    --auth-line: #e2e8f0;
    --auth-radius: 12px;
    margin: 0;
    min-height: 100vh !important;
    height: auto !important;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

.auth-page h1,
.auth-page h2,
.auth-page h3 {
    color: var(--auth-text);
}

.auth-page .wrapper,
.auth-page .content-wrapper {
    min-height: 0;
    background: transparent;
}

.auth-split {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.auth-split__visual {
    position: relative;
    flex: 0 0 48%;
    max-width: 48%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    background: var(--auth-navy);
}

.auth-split__visual img {
    width: 118%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
    min-height: 100vh;
}

.auth-split__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 31, 58, 0.08) 0%, rgba(11, 31, 58, 0.02) 70%, transparent 100%);
    pointer-events: none;
}

.auth-split__panel {
    flex: 1 1 52%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: linear-gradient(180deg, #f7f8fc 0%, #eef2f8 100%);
    position: relative;
    z-index: 2;
}

.auth-split__top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 22px 36px 0;
}

.auth-split__body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 32px 40px;
}

.auth-form {
    width: 100%;
    max-width: 420px;
}

.auth-form__logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 18px;
}

.auth-form__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 18px;
    background: #0b1220;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.auth-form__secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--auth-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-form__secure svg {
    width: 13px;
    height: 13px;
}

.auth-form h1 {
    margin: 14px 0 6px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--auth-navy);
    text-align: center;
}

.auth-form__sub {
    margin: 0 0 26px;
    color: var(--auth-muted);
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.auth-input,
.auth-page input.auth-input {
    width: 100%;
    height: 48px;
    border: 1px solid transparent;
    border-radius: var(--auth-radius);
    background: var(--auth-input);
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-text);
    box-shadow: none !important;
    outline: none;
}

.auth-page input.auth-input:focus {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-input {
    padding-right: 44px;
}

.auth-page a.auth-btn {
    text-decoration: none;
}

.auth-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    padding: 0;
}

.auth-eye:hover,
.auth-eye:focus {
    color: var(--auth-navy);
    outline: none;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 18px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text);
    cursor: pointer;
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--auth-blue);
}

.auth-link {
    color: var(--auth-blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--auth-blue-hover);
    text-decoration: underline;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: var(--auth-radius);
    background: var(--auth-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
    transition: background 0.15s ease, transform 0.15s ease;
}

.auth-btn:hover,
.auth-btn:focus {
    background: var(--auth-blue-hover);
    color: #fff;
    outline: none;
}

.auth-btn:active {
    transform: translateY(1px);
}

.auth-btn--ghost {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
    width: auto;
    padding: 0 18px;
    height: 40px;
    backdrop-filter: blur(8px);
}

.auth-btn--ghost:hover,
.auth-btn--ghost:focus {
    background: #fff;
    color: var(--auth-navy);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 14px;
    color: var(--auth-muted);
    font-size: 12px;
}

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

.auth-signup {
    text-align: center;
    font-size: 14px;
    color: var(--auth-muted);
    margin: 0;
}

.auth-error {
    display: block;
    margin-top: 6px;
    color: #dc2626;
    font-size: 12px;
    font-weight: 500;
}

.auth-lang {
    position: relative;
}

.auth-lang details {
    margin: 0;
}

.auth-lang summary {
    list-style: none;
    cursor: pointer;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
}

.auth-lang summary::-webkit-details-marker {
    display: none;
}

.auth-lang ul {
    position: absolute;
    right: 28px;
    margin-top: 4px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
    min-width: 180px;
    padding: 8px;
    z-index: 20;
    max-height: 280px;
    overflow: auto;
}

.auth-lang li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--auth-text);
    text-decoration: none;
    font-size: 13px;
}

.auth-lang li a:hover {
    background: #eff6ff;
    color: var(--auth-blue);
}

.auth-hero {
    min-height: 100vh;
    position: relative;
    background: var(--auth-navy);
}

.auth-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 18, 36, 0.28) 0%, rgba(8, 18, 36, 0.08) 42%, rgba(8, 18, 36, 0.18) 100%),
        linear-gradient(180deg, rgba(8, 18, 36, 0.22) 0%, transparent 18%, transparent 78%, rgba(8, 18, 36, 0.35) 100%);
}

.auth-hero__bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
}

.auth-hero__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.auth-hero__brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px;
}

.auth-hero__brand span {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-hero__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-hero .auth-lang summary {
    color: #fff;
}

.auth-hero__cta {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 3;
    width: min(360px, calc(100% - 48px));
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 22px 22px 20px;
    box-shadow: 0 20px 50px rgba(8, 18, 36, 0.28);
    backdrop-filter: blur(12px);
}

.auth-hero__cta h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--auth-navy);
}

.auth-hero__cta p {
    margin: 0 0 16px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    margin-top: 18px;
}

.auth-extra-links a {
    font-size: 12px;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-demo {
    max-width: 420px;
    width: 100%;
    margin: 0 auto 18px;
}

.auth-demo .box {
    border-radius: 16px;
    overflow: hidden;
}

.auth-recaptcha {
    margin-bottom: 14px;
}

@media (max-width: 991px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-split__visual {
        flex: 0 0 220px;
        max-width: none;
        height: 220px;
        clip-path: none;
    }

    .auth-split__visual img {
        width: 100%;
        min-height: 220px;
        height: 220px;
        object-position: center top;
    }

    .auth-split__top {
        padding: 12px 16px 0;
    }

    .auth-split__body {
        padding: 12px 18px 28px;
        align-items: flex-start;
    }

    .auth-form h1 {
        font-size: 26px;
    }

    .auth-hero__cta {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
    }

    .auth-hero__brand span {
        display: none;
    }
}

[dir="rtl"] .auth-split__visual {
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}

[dir="rtl"] .auth-split__visual img {
    object-position: right center;
}

[dir="rtl"] .auth-eye {
    right: auto;
    left: 10px;
}

[dir="rtl"] .auth-hero__cta {
    right: auto;
    left: 40px;
}
