/* ============================================================
   CBAHI LOGIN - PROFESSIONAL AUTH EXPERIENCE
   Modern split-panel + glass card | 2026
   ============================================================ */

:root {
    --lp-navy-900: #081A3C;
    --lp-navy-800: #0A224D;
    --lp-navy-700: #0C2E68;
    --lp-primary: #123D8C;
    --lp-primary-600: #1D5FDB;
    --lp-teal: #2AA8C7;
    --lp-teal-400: #39C5D6;
    --lp-green: #4CC38A;
    --lp-bg-top: #F5F8FD;
    --lp-bg-bottom: #EDF2F9;
    --lp-text: #0F1E38;
    --lp-text-muted: #64748B;
    --lp-border: #E2E8F0;
    --lp-radius-lg: 24px;
    --lp-radius-md: 14px;
    --lp-shadow-card: 0 24px 60px -18px rgba(10, 34, 77, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'Inter', 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--lp-bg-top);
    color: var(--lp-text);
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SPLIT LAYOUT
   ============================================================ */
.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ============================================================
   LEFT PANEL - BRANDING & VISUAL
   ============================================================ */
.login-brand-panel {
    flex: 1.15;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    background:
        radial-gradient(1100px 560px at 88% -12%, rgba(57, 197, 214, 0.18), transparent 60%),
        radial-gradient(900px 520px at -12% 112%, rgba(76, 195, 138, 0.12), transparent 55%),
        linear-gradient(140deg, #0C2E68 0%, #0A224D 48%, #081A3C 100%);
}

/* Ambient animated blobs */
.login-brand-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.login-brand-blob-1 {
    width: 440px;
    height: 440px;
    top: -130px;
    right: -90px;
    background: rgba(42, 168, 199, 0.38);
    animation: blobFloat 16s ease-in-out infinite;
}

.login-brand-blob-2 {
    width: 380px;
    height: 380px;
    bottom: -150px;
    left: -70px;
    background: rgba(76, 195, 138, 0.24);
    animation: blobFloat 20s ease-in-out infinite reverse;
}

.login-brand-blob-3 {
    width: 240px;
    height: 240px;
    top: 38%;
    left: 14%;
    background: rgba(57, 197, 214, 0.16);
    animation: blobFloat 24s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(24px, -30px) scale(1.06); }
    66% { transform: translate(-18px, 22px) scale(0.96); }
}

/* Decorative grid pattern */
.login-brand-panel .grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000 30%, transparent 78%);
    mask-image: radial-gradient(120% 120% at 50% 40%, #000 30%, transparent 78%);
}

/* Floating shapes */
.login-brand-shape {
    position: absolute;
    pointer-events: none;
}

.login-brand-shape-a {
    width: 130px;
    height: 130px;
    top: 10%;
    right: 11%;
    border: 1.5px solid rgba(255, 255, 255, 0.09);
    border-radius: 34px;
    transform: rotate(16deg);
}

.login-brand-shape-b {
    width: 66px;
    height: 66px;
    bottom: 16%;
    left: 8%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

/* Logo + secure pill */
.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.login-brand-content .brand-icon-large {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.login-brand-content .brand-icon-large img {
    height: 38px;
    width: auto;
    max-width: 120px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: 100px;
    background: rgba(57, 197, 214, 0.12);
    border: 1px solid rgba(57, 197, 214, 0.28);
    color: #8FE0EE;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-green);
    box-shadow: 0 0 0 4px rgba(76, 195, 138, 0.22);
    animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.login-brand-content h1 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.login-brand-content .brand-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 2.4rem;
}

/* Feature list */
.login-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.login-feature-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
}

.login-feature-item .feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(42, 168, 199, 0.35), rgba(42, 168, 199, 0.12));
    border: 1px solid rgba(57, 197, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8FE0EE;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Per-language login panel image — full-bleed when set */
.login-container.has-login-image {
    background: linear-gradient(180deg, var(--lp-bg-top) 0%, var(--lp-bg-bottom) 100%);
}

.login-brand-panel.has-login-image {
    padding: 0;
    justify-content: stretch;
    background: transparent;
    overflow: visible;
}

.login-container.has-login-image .login-form-panel {
    background: transparent;
}

.login-brand-panel.has-login-image .login-brand-blob,
.login-brand-panel.has-login-image .grid-pattern,
.login-brand-panel.has-login-image .login-brand-shape,
.login-brand-panel.has-login-image .login-brand-content,
.login-brand-panel.has-login-image .login-brand-footer {
    display: none;
}

.login-brand-panel .login-brand-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    overflow: hidden;
    z-index: 1;
}

.login-brand-panel .login-brand-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

/* Entrance animation (fade + slide-up) — respects prefers-reduced-motion */
.login-brand-image { animation: lpFadeUp 0.22s ease-out both; }
.login-card { animation: lpFadeUp 0.22s ease-out both; }
@keyframes lpFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .login-brand-image, .login-card { animation: none; }
}

/* Brand Footer */
.login-brand-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 3rem;
}

.brand-footer-sep {
    width: 56px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--lp-teal-400), var(--lp-green));
    margin-bottom: 1.1rem;
}

.login-brand-footer p {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.82rem;
}

/* ============================================================
   RIGHT PANEL - FORM
   ============================================================ */
.login-form-panel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background:
        radial-gradient(620px 320px at 12% 0%, rgba(42, 168, 199, 0.08), transparent 60%),
        radial-gradient(520px 320px at 100% 100%, rgba(18, 61, 140, 0.07), transparent 60%),
        linear-gradient(180deg, var(--lp-bg-top) 0%, var(--lp-bg-bottom) 100%);
}

.login-lang-bar {
    position: absolute;
    top: 1.4rem;
    inset-inline-end: 1.4rem;
    z-index: 10;
}

.header-lang {
    display: inline-flex;
    gap: 2px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(18, 61, 140, 0.08);
    border-radius: 100px;
    box-shadow: 0 4px 14px rgba(18, 61, 140, 0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-lang-btn {
    border: none;
    background: transparent;
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    padding: 0.32rem 0.8rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-lang-btn:hover:not(.active) {
    color: var(--lp-primary);
}

.header-lang-btn.active {
    background: linear-gradient(135deg, var(--lp-primary), var(--lp-primary-600));
    color: #fff;
    box-shadow: 0 4px 10px rgba(18, 61, 140, 0.3);
}

.login-form-wrapper {
    width: 100%;
    max-width: 430px;
    animation: loginFadeIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-form-wrapper .form-header {
    margin-bottom: 1.8rem;
}

.login-form-wrapper .form-header .form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--lp-teal);
    background: linear-gradient(135deg, rgba(42, 168, 199, 0.14), rgba(57, 197, 214, 0.08));
    border: 1px solid rgba(42, 168, 199, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.login-form-wrapper .form-header h2 {
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 800;
    color: var(--lp-text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-form-wrapper .form-header p {
    color: var(--lp-text-muted);
    font-size: 0.95rem;
}

/* Glass Card */
.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--lp-radius-lg);
    box-shadow: var(--lp-shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: clamp(1.5rem, 3vw, 2.2rem);
}

/* Form Elements */
.login-card .form-group {
    margin-bottom: 1.15rem;
}

.login-card .form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--lp-text);
    margin-bottom: 0.45rem;
}

.login-card .input-group {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--lp-border);
    border-radius: var(--lp-radius-md);
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.login-card .input-group:focus-within {
    border-color: var(--lp-primary-600);
    box-shadow: 0 0 0 4px rgba(29, 95, 219, 0.12);
}

.login-card .input-group .input-icon {
    display: flex;
    align-items: center;
    padding-inline-start: 1rem;
    padding-inline-end: 0.25rem;
    color: #94A3B8;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.login-card .input-group:focus-within .input-icon {
    color: var(--lp-primary);
}

.login-card .input-group .form-control {
    flex: 1;
    border: none;
    padding: 0.82rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--lp-text);
    background: transparent;
    outline: none;
    min-width: 0;
}

.login-card .input-group .form-control::placeholder {
    color: #94A3B8;
}

.login-card .input-group .toggle-password {
    display: flex;
    align-items: center;
    padding-inline: 0.9rem;
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    font-size: 0.95rem;
}

.login-card .input-group .toggle-password:hover {
    color: var(--lp-text);
}

/* Remember Me & Forgot Password */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.login-options .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.login-options .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 1.5px solid var(--lp-border);
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
    background: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.login-options .form-check-input:checked {
    background: var(--lp-primary-600) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") center/contain;
    border-color: var(--lp-primary-600);
}

.login-options .form-check-input:focus {
    border-color: var(--lp-primary-600);
    box-shadow: 0 0 0 3px rgba(29, 95, 219, 0.12);
}

.login-options .form-check-label {
    font-size: 0.875rem;
    color: var(--lp-text);
    cursor: pointer;
}

.login-options .forgot-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.login-options .forgot-link:hover {
    color: var(--lp-teal);
    text-decoration: underline;
}

/* Primary Button */
.login-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--lp-primary) 0%, var(--lp-primary-600) 58%, var(--lp-teal) 135%);
    border: none;
    border-radius: var(--lp-radius-md);
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px -8px rgba(18, 61, 140, 0.45);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: skewX(-20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.login-btn:hover::before {
    left: 145%;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -8px rgba(18, 61, 140, 0.52);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:focus-visible {
    outline: 2px solid var(--lp-teal-400);
    outline-offset: 2px;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-btn .btn-loading {
    display: none;
}

.login-btn.loading .btn-text {
    visibility: hidden;
}

.login-btn.loading .btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
}

.login-btn.loading .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loginSpin 0.6s linear infinite;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

/* Form Footer */
.login-form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--lp-text-muted);
}

.login-form-footer a {
    color: var(--lp-primary);
    font-weight: 600;
    text-decoration: none;
}

.login-form-footer a:hover {
    color: var(--lp-teal);
    text-decoration: underline;
}

/* Back to login link */
.auth-back-link {
    margin-top: 1rem;
    text-align: center;
}

.auth-back-link .forgot-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--lp-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link .forgot-link:hover {
    color: var(--lp-teal);
}

/* Error Alert */
.login-error {
    background: #FFF1F2;
    border: 1px solid #FECDD3;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.login-error i {
    color: #E11D48;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.login-error div {
    font-size: 0.85rem;
    color: #9F1239;
}

.login-error div:not(:last-child) {
    margin-bottom: 0.25rem;
}

/* Success Alert */
.auth-success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.auth-success i {
    color: #16A34A;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-success span {
    font-size: 0.85rem;
    color: #166534;
}

/* Validation */
.form-error,
.field-validation-error {
    display: block;
    font-size: 0.8rem;
    color: #DC2626;
    margin-top: 0.35rem;
}

.input-validation-error {
    border-color: #DC2626 !important;
}

.input-validation-error:focus-within {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12) !important;
}

/* Password strength (Reset Password / Force Password Change) */
.password-strength {
    margin-top: 0.6rem;
}

.password-strength-bar {
    position: relative;
    height: 5px;
    border-radius: 99px;
    background: var(--lp-border);
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.password-strength-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--strength-width, 0%);
    background: var(--strength-color, var(--lp-border));
    border-radius: 99px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--lp-text-muted);
}

/* Info notice (Force Password Change) */
.auth-notice {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.auth-notice i {
    color: #1D4ED8;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.auth-notice div {
    font-size: 0.85rem;
    color: #1E3A8A;
}

.password-policy {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--lp-text-muted);
}

/* ============================================================
   STATUS PAGES (ConfirmEmail / ResetPasswordConfirmation)
   ============================================================ */
.auth-status {
    text-align: center;
    padding: 0.75rem 0.25rem;
}

.auth-status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
}

.auth-status-success {
    background: rgba(76, 195, 138, 0.14);
    border: 1px solid rgba(76, 195, 138, 0.35);
    color: #16A34A;
}

.auth-status-info {
    background: rgba(42, 168, 199, 0.14);
    border: 1px solid rgba(42, 168, 199, 0.35);
    color: var(--lp-teal);
}

.auth-status h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-text);
    margin-bottom: 0.5rem;
}

.auth-status p {
    color: var(--lp-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.auth-status .login-btn {
    display: inline-flex;
    width: auto;
    padding: 0.7rem 1.6rem;
    font-size: 0.92rem;
}

/* ============================================================
   MOBILE BRAND BAR (shown below 992px)
   ============================================================ */
.login-mobile-brand {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .login-brand-panel {
        padding: 3rem;
    }

    .login-brand-content h1 {
        font-size: 1.9rem;
    }
}

@media (max-width: 992px) {
    body.login-page {
        flex-direction: column;
    }

    .login-brand-panel {
        display: none;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.9rem 1.5rem;
        background: linear-gradient(135deg, var(--lp-navy-700) 0%, var(--lp-navy-800) 55%, var(--lp-navy-900) 100%);
    }

    .login-mobile-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.16);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #8FE0EE;
        font-size: 1.05rem;
        overflow: hidden;
        flex-shrink: 0;
    }

    .login-mobile-brand-mark img {
        height: 26px;
        width: auto;
        max-width: 70px;
    }

    .login-mobile-brand span {
        color: #fff;
        font-weight: 700;
        font-size: 0.98rem;
    }

    .login-container {
        flex: 1;
    }

    .login-form-panel {
        padding: 1.75rem;
    }

    .login-form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-form-panel {
        padding: 1.25rem 1rem;
        align-items: flex-start;
        padding-top: 2.25rem;
    }

    .login-card {
        border-radius: 18px;
        padding: 1.5rem 1.25rem;
    }

    .login-form-wrapper .form-header h2 {
        font-size: 1.45rem;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .login-btn {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    .login-lang-bar {
        top: 1rem;
        inset-inline-end: 1rem;
    }
}
