/* ══════════════════════════════════════════════════════════════
   FRESHO فريشو — Login Page v4.0
   Dark Cinematic × Premium Authentication Experience
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ── */
:root {
    --brand:          #FF6B35;
    --brand-dark:     #E5501A;
    --brand-deeper:   #CC3D0D;
    --brand-grad:     linear-gradient(135deg, #FF6B35 0%, #FF3D00 60%, #E5501A 100%);
    --brand-glow:     rgba(255, 107, 53, 0.4);
    --brand-rgb:      255, 107, 53;

    --bg-base:        #09091A;
    --bg-card:        #111122;
    --bg-elevated:    #16162E;
    --bg-input:       #0D0D1E;

    --glass-light:    rgba(255, 255, 255, 0.04);
    --glass-medium:   rgba(255, 255, 255, 0.08);
    --glass-border:   rgba(255, 255, 255, 0.08);

    --text-primary:   #F0F2FF;
    --text-secondary: #8B90B8;
    --text-muted:     #505580;

    --border:         rgba(255, 255, 255, 0.07);
    --border-strong:  rgba(255, 255, 255, 0.12);

    --danger:         #FF4D6A;
    --danger-bg:      rgba(255, 77, 106, 0.1);

    --success:        #00D68F;
    --success-bg:     rgba(0, 214, 143, 0.1);

    --radius-sm:  10px;
    --radius-md:  16px;
    --radius-lg:  22px;
    --radius-xl:  30px;
    --radius-full: 9999px;

    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);

    --font-ar: 'Cairo', system-ui, sans-serif;
    --font-en: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; font-size: 16px; scroll-behavior: smooth; }
body {
    height: 100%;
    font-family: var(--font-ar);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}
html[dir="ltr"] body { font-family: var(--font-en); }

/* ── Language Toggle ── */
.lang-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 100;
}
html[dir="rtl"] .lang-toggle-wrapper { right: auto; left: 24px; }

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--ease-in-out);
    font-family: inherit;
    letter-spacing: 0.05em;
}

.lang-toggle-btn:hover {
    background: rgba(255,107,53,0.12);
    border-color: rgba(255,107,53,0.35);
    color: var(--brand);
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   MAIN LOGIN WRAPPER
   ═══════════════════════════════════════════ */

.login-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Animated Background ── */
.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 30%, rgba(255,107,53,0.08) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(77,100,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 50% 50%, rgba(9,9,26,1) 0%, rgba(9,9,26,0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Floating ambient orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    animation: orbFloat1 12s ease-in-out infinite;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(77,159,255,0.08) 0%, transparent 70%);
    animation: orbFloat2 15s ease-in-out infinite;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(157,110,255,0.05) 0%, transparent 70%);
    animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-40px, 30px) scale(1.05); }
    66%       { transform: translate(20px, -20px) scale(0.97); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(50px, -40px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%       { transform: translate(-50%, -50%) scale(1.2); }
}

/* Floating grid dots */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5), transparent 75%);
}

/* ═══════════════════════════════════════════
   LOGIN CONTAINER — Split Layout
   ═══════════════════════════════════════════ */

.login-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 620px;
    max-height: 90vh;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04),
        0 30px 80px rgba(0,0,0,0.7),
        0 0 80px rgba(255,107,53,0.05);
    position: relative;
    z-index: 1;
    animation: containerIn 0.7s var(--ease-spring);
}

@keyframes containerIn {
    from { opacity: 0; transform: scale(0.94) translateY(30px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ══ LEFT PANEL — Branding ══ */
.branding-panel {
    flex: 1.1;
    background: linear-gradient(150deg, rgba(255,107,53,0.15) 0%, rgba(255,61,0,0.08) 40%, rgba(9,9,26,0.6) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    overflow: hidden;
    border-inline-end: 1px solid var(--border);
}

/* Panel background glow */
.branding-panel::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,107,53,0.2) 0%, transparent 65%);
    pointer-events: none;
    animation: panelGlow 8s ease-in-out infinite;
}

.branding-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(157,110,255,0.1) 0%, transparent 65%);
    pointer-events: none;
    animation: panelGlow 12s ease-in-out infinite reverse;
}

@keyframes panelGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50%       { opacity: 1; transform: scale(1.1); }
}

/* Floating shapes */
.animated-bg { position: absolute; inset: 0; pointer-events: none; }

.floating-shape {
    position: absolute;
    border-radius: 50%;
}

.floating-shape:nth-child(1) {
    width: 120px; height: 120px;
    top: 15%; left: 10%;
    background: rgba(255,107,53,0.06);
    border: 1px solid rgba(255,107,53,0.1);
    animation: shapeFloat1 10s ease-in-out infinite;
}

.floating-shape:nth-child(2) {
    width: 80px; height: 80px;
    top: 65%; right: 12%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    animation: shapeFloat2 8s ease-in-out infinite;
}

.floating-shape:nth-child(3) {
    width: 60px; height: 60px;
    top: 30%; right: 20%;
    background: rgba(157,110,255,0.05);
    border: 1px solid rgba(157,110,255,0.1);
    animation: shapeFloat3 12s ease-in-out infinite;
}

.floating-shape:nth-child(4) {
    width: 40px; height: 40px;
    bottom: 25%; left: 35%;
    background: rgba(0,214,143,0.05);
    border: 1px solid rgba(0,214,143,0.1);
    animation: shapeFloat1 9s ease-in-out infinite reverse;
}

@keyframes shapeFloat1 {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33%       { transform: translate(20px,-15px) rotate(120deg); }
    66%       { transform: translate(-15px,20px) rotate(240deg); }
}

@keyframes shapeFloat2 {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(-20px,15px) scale(1.08); }
}

@keyframes shapeFloat3 {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    25%       { transform: translate(10px,-20px) rotate(90deg); }
    75%       { transform: translate(-15px,10px) rotate(270deg); }
}

/* Juice blobs */
.juice-splash {
    position: absolute;
    pointer-events: none;
}

.juice-splash-1 {
    width: 200px; height: 200px;
    top: 5%; right: 5%;
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    background: rgba(255,107,53,0.05);
    border: 1px solid rgba(255,107,53,0.08);
    animation: morphBlob 10s ease-in-out infinite;
}

.juice-splash-2 {
    width: 140px; height: 140px;
    bottom: 8%; right: 20%;
    border-radius: 58% 42% 30% 70% / 55% 45% 55% 45%;
    background: rgba(255,107,53,0.04);
    border: 1px solid rgba(255,107,53,0.06);
    animation: morphBlob 14s ease-in-out infinite reverse;
}

.juice-splash-3 {
    width: 100px; height: 100px;
    top: 40%; left: 5%;
    border-radius: 30% 70% 42% 58% / 45% 55% 45% 55%;
    background: rgba(157,110,255,0.04);
    animation: morphBlob 8s ease-in-out infinite;
}

@keyframes morphBlob {
    0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    25%       { border-radius: 58% 42% 30% 70% / 55% 45% 55% 45%; }
    50%       { border-radius: 30% 70% 58% 42% / 45% 55% 45% 55%; }
    75%       { border-radius: 70% 30% 42% 58% / 55% 55% 45% 45%; }
}

/* Branding content */
.branding-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.branding-logo-wrap {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    background: var(--brand-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow:
        0 0 0 1px rgba(255,107,53,0.3),
        0 16px 48px rgba(255,107,53,0.4),
        0 0 80px rgba(255,107,53,0.2);
    animation: logoGlow 3s ease-in-out infinite alternate, logoIn 0.9s var(--ease-spring) 0.2s both;
    position: relative;
    overflow: hidden;
}

.branding-logo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 50%);
    border-radius: inherit;
}

@keyframes logoGlow {
    from { box-shadow: 0 0 0 1px rgba(255,107,53,0.3), 0 16px 48px rgba(255,107,53,0.4), 0 0 60px rgba(255,107,53,0.15); }
    to   { box-shadow: 0 0 0 2px rgba(255,107,53,0.5), 0 20px 60px rgba(255,107,53,0.55), 0 0 100px rgba(255,107,53,0.25); }
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

.branding-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.branding-title {
    font-size: 2.8rem;
    font-weight: 900;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.4s both;
}

.branding-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 16px;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.5s both;
}

.branding-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 280px;
    line-height: 1.8;
    margin: 0 auto 36px;
    font-weight: 500;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.6s both;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.7s both;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    text-align: start;
    transition: all 0.25s var(--ease-in-out);
}

.branding-feature:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.2);
    transform: translateX(-4px);
}

html[dir="ltr"] .branding-feature:hover { transform: translateX(4px); }

.branding-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--brand-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}

.branding-feature span:last-child {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.branding-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.85s both;
}

.branding-stat {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
}

.branding-stat-val {
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
}

.branding-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 4px;
    display: block;
}

.copyright {
    margin-top: 24px;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    animation: fadeSlideUp 0.8s var(--ease-out) 0.95s both;
}

/* ══ RIGHT PANEL — Form ══ */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    padding: 40px;
    position: relative;
    overflow-y: auto;
}

/* Subtle mesh pattern */
.form-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,107,53,0.04) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(77,159,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    animation: cardIn 0.6s var(--ease-spring) 0.3s both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card logo for mobile */
.login-card-logo {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--brand-grad);
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(255,107,53,0.4);
    font-size: 1.8rem;
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.login-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Error Alert ── */
.error-message {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: rgba(255,77,106,0.08);
    border: 1px solid rgba(255,77,106,0.2);
    border-radius: var(--radius-sm);
    color: var(--danger);
    font-size: 0.88rem;
    font-weight: 600;
    animation: alertIn 0.3s var(--ease-out);
}

.error-message.visible { display: flex; }

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.error-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Form Groups ── */
.form-group {
    position: relative;
    margin-bottom: 18px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.25s;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
}

html[dir="rtl"] .input-icon { left: auto; right: 14px; }

.form-input {
    width: 100%;
    height: 52px;
    padding: 14px 14px 14px 48px;
    font-size: 0.93rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.25s var(--ease-in-out);
    -webkit-appearance: none;
}

html[dir="rtl"] .form-input { padding: 14px 48px 14px 14px; }

.form-input:focus {
    border-color: var(--brand);
    background: rgba(255,107,53,0.03);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
    color: var(--text-primary);
}

.form-input:focus ~ .input-icon { color: var(--brand); }

.form-input.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(255,77,106,0.1);
}

.form-input::placeholder { color: var(--text-muted); opacity: 1; font-weight: 400; }

/* Floating label */
.floating-label {
    position: absolute;
    top: 50%;
    left: 48px;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.22s var(--ease-in-out);
    z-index: 2;
    line-height: 1;
}

html[dir="rtl"] .floating-label { left: auto; right: 48px; }

.form-input:focus ~ .floating-label,
.form-input:not(:placeholder-shown) ~ .floating-label {
    top: 11px;
    transform: translateY(0);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    font-size: 1rem;
    transition: all 0.22s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    width: 34px;
    height: 34px;
}

html[dir="rtl"] .password-toggle { right: auto; left: 12px; }

.password-toggle:hover {
    color: var(--brand);
    background: rgba(255,107,53,0.08);
}

.form-input.has-toggle { padding-right: 48px; }
html[dir="rtl"] .form-input.has-toggle { padding-right: 48px; padding-left: 48px; }

/* Field errors */
.field-error {
    display: none;
    font-size: 0.78rem;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 600;
    animation: alertIn 0.2s var(--ease-out);
}
.field-error.visible { display: block; }

/* ── Form Options ── */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--border-strong);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s var(--ease-in-out);
    flex-shrink: 0;
    background: var(--bg-input);
    position: relative;
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--brand-grad);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(255,107,53,0.4);
}

.checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0;
    transform: scale(0);
    transition: all 0.22s var(--ease-spring);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ── Login Button ── */
.btn-login {
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--brand-grad);
    color: white;
    font-size: 0.98rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s var(--ease-in-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(255,107,53,0.35);
    letter-spacing: 0.02em;
}

/* Shimmer */
.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    box-shadow: 0 10px 40px rgba(255,107,53,0.55);
    transform: translateY(-2px);
}

.btn-login:hover::before { left: 100%; }

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(255,107,53,0.35);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 16px rgba(255,107,53,0.2) !important;
}

.btn-login.loading .btn-text { opacity: 0; }
.btn-login.loading .btn-spinner { display: block; }

.btn-text { transition: opacity 0.2s; }

.btn-spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    position: absolute;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Login Footer ── */
.login-footer {
    text-align: center;
    margin-top: 28px;
}

.login-footer-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-strong);
}

/* ── Trust badges ── */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-10px); }
    40%       { transform: translateX(10px); }
    60%       { transform: translateX(-6px); }
    80%       { transform: translateX(6px); }
}

.shake { animation: shake 0.45s ease-in-out; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
    .login-wrapper { overflow-y: auto; }

    .login-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        min-height: 100vh;
        max-height: none;
        border: none;
        box-shadow: none;
    }

    .branding-panel {
        flex: none;
        min-height: 300px;
        padding: 48px 24px 36px;
        border-inline-end: none;
        border-bottom: 1px solid var(--border);
    }

    .branding-features { gap: 8px; }
    .branding-feature { padding: 10px 14px; }

    .branding-stats { display: none; }

    .form-panel {
        flex: none;
        padding: 36px 24px;
        min-height: auto;
    }

    .login-card-logo { display: flex; }

    .branding-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .lang-toggle-wrapper { top: 14px; right: 14px; }
    html[dir="rtl"] .lang-toggle-wrapper { left: 14px; }

    .branding-panel { min-height: 240px; padding: 40px 20px 28px; }
    .branding-logo-wrap { width: 70px; height: 70px; }
    .branding-title { font-size: 1.8rem; }
    .branding-subtitle { display: none; }
    .branding-features { display: none; }

    .form-panel { padding: 28px 20px 40px; }
    .login-card-title { font-size: 1.5rem; }
}
