html:not([data-auth-localization-ready="true"]) body.auth-page {
    visibility: hidden;
}

body.auth-page {
    direction: inherit;
}

.auth-page .login-wrapper {
    max-width: 440px;
}

.auth-page .login-card {
    padding: 32px;
}

.auth-language-switcher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-language-switcher label {
    color: #4a5568;
    font-size: 0.8125rem;
    font-weight: 600;
}

.auth-language-switcher select {
    min-height: 44px;
    padding: 8px 32px 8px 12px;
    color: #2d3748;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font: inherit;
}

html[dir="rtl"] .auth-language-switcher select {
    padding-right: 12px;
    padding-left: 32px;
}

.auth-page-header {
    margin-bottom: 24px;
    text-align: center;
}

.auth-page-header h1 {
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 1.5rem;
    line-height: 1.3;
}

.auth-page-header p {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
}

.auth-page .form-group label {
    text-align: start;
}

.auth-page .form-group input {
    min-height: 44px;
    text-align: start;
}

.auth-page .auth-technical {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

html[dir="rtl"] .auth-page input[type="password"]::placeholder {
    direction: rtl;
    text-align: right;
}

.auth-page .btn-primary {
    min-height: 44px;
}

.auth-secondary-action {
    margin-top: 20px;
    color: #718096;
    font-size: 0.875rem;
    text-align: center;
}

.auth-secondary-action a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #2b6cb0;
    font-weight: 600;
    text-decoration: none;
}

.auth-secondary-action a:hover {
    text-decoration: underline;
}

.auth-page :where(button, a, input, select):focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}

.auth-page .form-group input:focus-visible {
    border-color: #2563eb;
    box-shadow: none;
}

.auth-page .error-message,
.auth-page .success-message,
.auth-page .loading-indicator {
    line-height: 1.5;
    text-align: start;
}

@media (max-width: 480px) {
    .auth-page .login-card {
        padding: 24px 20px;
    }

    .auth-page :where(input, button, select, a) {
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page *,
    .auth-page *::before,
    .auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
