@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce-smooth {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes logo-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
        filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
    }
    50% { 
        transform: scale(1.08);
        opacity: 0.85;
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.9));
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(-20px, -10px); }
}

@keyframes rotate-icon {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
    100% { transform: rotateY(0deg); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e) !important;
    background-attachment: fixed !important;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: inherit;
    transition: all 0.5s ease;
}

html.light-mode, html.light-mode body {
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec, #e8f0f8) !important;
    color: #1a1a1a;
}

html.light-mode .login-container {
    background: transparent;
}

html.light-mode .login-card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(200, 200, 200, 0.3) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1) !important;
}

html.light-mode .form-title {
    color: #1a1a1a !important;
}

html.light-mode .form-subtitle {
    color: rgba(26, 26, 26, 0.7) !important;
}

html.light-mode .form-label {
    color: rgba(26, 26, 26, 0.9) !important;
}

html.light-mode .form-input {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(200, 200, 200, 0.5) !important;
    color: #1a1a1a !important;
}

html.light-mode .form-input::placeholder {
    color: rgba(26, 26, 26, 0.5) !important;
}

html.light-mode .form-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #3b82f6 !important;
}

html.light-mode .form-checkbox label {
    color: rgba(26, 26, 26, 0.8) !important;
}

html.light-mode .form-checkbox input + label::before {
    display: inline-block !important;
    background: rgba(100, 100, 100, 0.15) !important;
    border-color: rgba(100, 100, 100, 0.3) !important;
}

html.light-mode .form-checkbox input:checked + label::before {
    display: inline-block !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-color: #3b82f6 !important;
}

html.light-mode .forgot-password {
    color: #3b82f6 !important;
}

html.light-mode .forgot-password:hover {
    color: #8b5cf6 !important;
}

html.light-mode .btn-demo {
    background: rgba(200, 200, 200, 0.2) !important;
    border: 1px solid rgba(100, 100, 100, 0.3) !important;
    color: #1a1a1a !important;
}

html.light-mode .btn-demo:hover {
    background: rgba(100, 100, 100, 0.15) !important;
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

html.light-mode .register-link {
    border-top: 1px solid rgba(100, 100, 100, 0.2) !important;
    color: rgba(26, 26, 26, 0.7) !important;
}

html.light-mode .register-link a {
    color: #3b82f6 !important;
}

html.light-mode .register-link a:hover {
    color: #8b5cf6 !important;
}

html.light-mode .brand-title {
    color: #1a1a1a !important;
}

html.light-mode .brand-subtitle {
    color: rgba(26, 26, 26, 0.7) !important;
}

html.light-mode .feature-item {
    color: rgba(26, 26, 26, 0.8) !important;
}

html.light-mode .control-btn {
    background: linear-gradient(135deg, #FFF1E6, #FFE6C7) !important;
    border-color: rgba(15,23,42,0.04) !important;
    color: #0b1220 !important;
    box-shadow: 0 8px 20px rgba(2,6,23,0.04) !important;
}

html.light-mode #fb-lang.control-btn {
    background: linear-gradient(135deg, #FFD9B0, #FFB86B) !important;
    color: #2b0a00 !important;
}

html.light-mode #fb-theme.control-btn {
    background: linear-gradient(135deg, #D6E9FF, #BFD7FF) !important;
    color: #04202b !important;
}

html.light-mode .control-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(2,6,23,0.06) !important;
    color: #04202b !important;
}

html.light-mode .lang-menu {
    background: linear-gradient(180deg, #FFFFFF, #FBFBFD) !important;
    color: #0b1220 !important;
    border: 1px solid rgba(15,23,42,0.04) !important;
    box-shadow: 0 12px 30px rgba(2,6,23,0.04) !important;
}

html.light-mode .lang-option:hover {
    background: linear-gradient(90deg, rgba(59,130,246,0.06), rgba(99,102,241,0.04)) !important;
    transform: translateX(-4px) !important;
}

html.light-mode .brand-logo {
    background: transparent;
}

html.light-mode .brand-logo-icon { color: #0b1220; fill: #0b1220 !important; }
html.light-mode .brand-logo-bg { fill: rgba(11,17,34,0.04); }

html:not(.light-mode) .brand-logo-icon { color: #ffffff; fill: #ffffff !important; }
html:not(.light-mode) .brand-logo-bg { fill: transparent; }

html.light-mode .icon-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 8px 30px rgba(15,23,42,0.06) !important;
}

html.light-mode .icon-card:hover {
    transform: translateY(-6px) scale(1.04) !important;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08) !important;
}

html.light-mode .icon-svg {
    fill: #0f172a !important;
    opacity: 0.95 !important;
}

html.light-mode .illustration-label {
    color: #0b1220 !important;
}

html.light-mode .success-message {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #22c55e !important;
}

html.light-mode .error-message {
    color: #ef4444 !important;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, rgba(59, 130, 246, 0) 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -50px;
    left: -80px;
    animation: float 15s ease-in-out infinite 2s;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    z-index: 10;
    align-items: center;
}

.login-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    animation: slideUp 0.8s ease-out;
}

.brand-logo {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.brand-logo { display: inline-block; padding: 6px; border-radius: 12px; }
.brand-logo-svg { width: 72px; height: 72px; display: block; }
.brand-logo-icon { transition: fill 0.25s ease; }

.brand-logos-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.brand-logo-animated {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logo-pulse 2.5s ease-in-out infinite;
}

.codehorizon-pulse-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-illustration {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.icon-card {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(11, 23, 39, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.icon-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 12px 30px rgba(11,23,39,0.35); }

.icon-svg { width: 42px; height: 42px; fill: white; opacity: 0.95; }

.illustration-label { font-size: 13px; color: rgba(255,255,255,0.85); text-align: center; margin-top: 8px; }

.brand-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.login-form-section {
    display: flex;
    flex-direction: column;
    animation: slideUp 1s ease-out;
}

.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: #fff;
}

.form-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    font-size: 15px;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.form-checkbox input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: auto;
}

.form-checkbox input + label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
    position: relative;
    white-space: nowrap;
    font-size: 15px;
    line-height: 1;
}

.form-checkbox input + label::before {
    content: '';
    display: inline-block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: background 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.form-checkbox input + label::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 2px;
    transform: translateY(-50%);
    transition: left 0.25s ease, right 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.form-checkbox input:checked + label::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: #3b82f6;
}

.form-checkbox input:checked + label::after {
    left: 22px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

html[dir="rtl"] .form-checkbox input + label::after {
    left: auto;
    right: 2px;
    transform: translateY(-50%);
}

html[dir="rtl"] .form-checkbox input:checked + label::after {
    right: 22px;
    left: auto;
}

.form-actions .form-checkbox {
    vertical-align: middle;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #8b5cf6;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.demo-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.btn-demo {
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.btn-demo:hover::before {
    left: 100%;
}

.btn-demo:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.1));
    border-color: rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-demo:active {
    transform: translateY(0);
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.register-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: #8b5cf6;
}

.control-buttons {
    position: fixed;
    top: 10px;
    left: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    align-items: center;
}

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #6EE7B7, #34D399);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    color: #04202b;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    min-height: 40px;
}

#fb-lang.control-btn {
    background: linear-gradient(135deg, #FFB86B, #FF8A4B);
    border-color: rgba(255,138,75,0.18);
    color: #2b0a00;
}

#fb-theme.control-btn {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6);
    border-color: rgba(59,130,246,0.18);
    color: #ffffff;
}

.control-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.12);
    color: #fff;
}

.control-btn:active { transform: translateY(-1px); }

.control-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: none;
}

.control-btn .lang-icon,
.control-btn .theme-icon {
    font-size: 18px;
    display: inline-block;
    line-height: 1;
}

.control-btn-label {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
}

.lang-menu {
    position: absolute;
    top: 70px;
    left: 0;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.95), rgba(48, 43, 99, 0.95));
    border: 2px solid #FFD93D;
    border-radius: 12px;
    padding: 8px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(10px);
}

.lang-menu.active {
    display: flex;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
}

.lang-option:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-color: #FFD93D;
    transform: translateX(-5px);
}

.lang-option.active {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    border-color: #FFD93D;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.lang-flag {
    font-size: 20px;
}

html[dir="ltr"] .lang-menu {
    left: auto;
    right: 0;
}

html[dir="ltr"] .lang-option:hover {
    transform: translateX(5px);
}

.lang-icon {
    font-size: 24px;
    display: inline-block;
    animation: bounce-smooth 2s ease-in-out infinite;
}

.control-btn .lang-icon {
    margin-bottom: 0px;
    position: relative;
}

.control-btn:hover .lang-icon {
    animation: rotate-icon 0.6s ease-in-out;
}

.form-title,
.form-subtitle,
.form-label,
.register-link,
.illustration-label,
.brand-title,
.brand-subtitle,
.feature-item,
.control-btn-label,
.btn-demo,
.btn-submit,
.form-checkbox label {
    font-weight: 800 !important;
}

.form-title { font-size: 32px !important; }
.form-subtitle { font-size: 16px !important; }
.form-label { font-size: 16px !important; }
.feature-item { font-size: 16px !important; }

html.light-mode .form-title,
html.light-mode .form-subtitle,
html.light-mode .form-label,
html.light-mode .register-link,
html.light-mode .illustration-label,
html.light-mode .brand-title,
html.light-mode .brand-subtitle,
html.light-mode .feature-item,
html.light-mode .control-btn-label,
html.light-mode .btn-demo,
html.light-mode .btn-submit {
    color: #0b1220 !important;
    font-weight: 800 !important;
}

html.light-mode .form-input {
    background: rgba(255,255,255,0.95) !important;
    border: 1px solid rgba(15,23,42,0.06) !important;
    color: #0b1220 !important;
}

html.light-mode .form-input::placeholder {
    color: rgba(11,17,34,0.45) !important;
}

html.light-mode .icon-svg {
    fill: #0b1220 !important;
    opacity: 0.95 !important;
}

html:not(.light-mode) .form-title,
html:not(.light-mode) .form-subtitle,
html:not(.light-mode) .form-label,
html:not(.light-mode) .register-link,
html:not(.light-mode) .illustration-label,
html:not(.light-mode) .brand-title,
html:not(.light-mode) .brand-subtitle,
html:not(.light-mode) .feature-item,
html:not(.light-mode) .control-btn-label {
    color: #F8FBFF !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

html:not(.light-mode) .form-input {
    color: #F5FAFF !important;
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.12) !important;
}

html:not(.light-mode) .form-input::placeholder {
    color: rgba(255,255,255,0.75) !important;
}

html:not(.light-mode) .forgot-password {
    color: #9BD1FF !important;
}

html:not(.light-mode) .icon-svg {
    fill: #FFFFFF !important;
    opacity: 1 !important;
}

html:not(.light-mode) .icon-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-color: rgba(255,255,255,0.06) !important;
}

html:not(.light-mode) .btn-demo {
    color: #EAF6FF !important;
    border-color: rgba(255,255,255,0.08) !important;
}

html:not(.light-mode) .form-checkbox label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
}

html:not(.light-mode) .form-checkbox input[type="checkbox"] {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    cursor: pointer !important;
}

html:not(.light-mode) .form-checkbox input[type="checkbox"] + label::before {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

html:not(.light-mode) .form-checkbox input[type="checkbox"] + label::after {
    background: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

html:not(.light-mode) .form-checkbox input[type="checkbox"]:checked + label::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border-color: #3b82f6 !important;
}

html:not(.light-mode) .form-checkbox input[type="checkbox"]:checked + label::after {
    left: 22px !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35) !important;
}

html:not(.light-mode) body,
html:not(.light-mode) .login-container,
html:not(.light-mode) .login-wrapper,
html:not(.light-mode) .login-card {
    color: #F8FBFF !important;
}

html:not(.light-mode) .login-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)) !important;
    border-color: rgba(255,255,255,0.06) !important;
}

html:not(.light-mode) .btn-submit {
    color: #ffffff !important;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none !important;
}

html:not(.light-mode) .register-link a {
    color: #93c5fd !important;
}

html:not(.light-mode) .feature-icon {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6) !important;
    color: #fff !important;
}

html:not(.light-mode) .brand-features .feature-item,
html:not(.light-mode) .brand-features .feature-item span,
html:not(.light-mode) .brand-features .feature-icon {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.45);
}

html:not(.light-mode) .brand-features .feature-icon {
    background: linear-gradient(135deg, #60a5fa, #8b5cf6) !important;
    border-radius: 6px !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
}

html:not(.light-mode) .control-btn-label {
    color: #fff !important;
}

#superadmin-btn { display: none !important; }
#superadmin-pass { display: none !important; }
#superadmin-pass-submit { display: none !important; }

@media (max-width: 480px) {
    .control-buttons { gap: 8px; }
    .control-btn { padding: 8px 10px; font-size: 12px; }
    .control-btn-label { display: none; }
    .demo-buttons { grid-template-columns: 1fr !important; }
    .btn-demo { padding: 10px; font-size: 12px; }
}

@media (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .login-brand {
        padding: 20px;
        text-align: center;
    }

    .brand-title {
        font-size: 36px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .control-buttons {
        top: 10px;
        left: 15px;
        gap: 12px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .control-btn svg {
        width: 22px;
        height: 22px;
    }

    .control-btn-label {
        font-size: 9px;
    }

    .demo-buttons {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

html[dir="rtl"] .control-buttons {
    left: 30px;
    right: auto;
}

html[dir="ltr"] .control-buttons {
    right: 30px;
    left: auto;
}

html[dir="rtl"] .control-buttons.mobile {
    left: 15px;
    right: auto;
}

html[dir="ltr"] .control-buttons.mobile {
    right: 15px;
    left: auto;
}

html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] * {
    direction: ltr;
}

html[dir="rtl"] * {
    direction: rtl;
}
