body.auth-shell {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(17, 138, 178, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(6, 78, 59, 0.18), transparent 28%),
        linear-gradient(135deg, #f3f7fb 0%, #dfe9f3 100%);
    display: flex;
    flex-direction: column;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
    padding: 24px;
}

.ks-brand-link {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    text-decoration: none;
}

.ks-brand-link:hover,
.ks-brand-link:focus {
    text-decoration: none;
}

.ks-brand-image {
    display: block;
    height: 54px;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.auth-topbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 auto 18px;
    max-width: 460px;
    width: 100%;
}

.auth-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
    max-width: 460px;
    padding: 32px;
    width: 100%;
}

.auth-brand {
    margin-bottom: 24px;
}

.auth-brand-logo {
    margin-bottom: 18px;
}

.auth-kicker {
    color: #0f766e;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.auth-brand h1 {
    color: #102a43;
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
}

.auth-brand p {
    color: #52667a;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.auth-card .form-control {
    border-radius: 10px;
    box-shadow: none;
    min-height: 46px;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #0f766e 0%, #0b5ed7 100%);
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 8px;
    padding: 12px 18px;
}

.auth-card .alert {
    border-radius: 10px;
}

.auth-links {
    color: #52667a;
    margin: 18px 0 0;
    text-align: center;
}

.auth-links a {
    color: #0b5ed7;
    font-weight: 700;
    text-decoration: none;
}

.locale-switcher {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
}

.locale-switcher-form {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    max-width: 100%;
}

.locale-switcher-select {
    appearance: none;
    -webkit-appearance: none;
    background: #ffffff;
    border: 1px solid #cfd9e3;
    border-radius: 999px;
    color: #253648;
    font-size: 12px;
    font-weight: 700;
    height: 34px;
    line-height: 1.2;
    max-width: 100%;
    min-width: 148px;
    padding: 6px 12px;
}

.locale-switcher-auth {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.locale-switcher-label {
    color: #52667a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .locale-switcher-auth,
    .locale-switcher-auth .locale-switcher-form {
        width: 100%;
    }

    .locale-switcher-auth .locale-switcher-select {
        min-width: 0;
        width: 100%;
    }

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

[dir="rtl"] .auth-shell {
    direction: rtl;
}

[dir="rtl"] .locale-switcher-auth {
    justify-content: flex-start;
}
