body.light-theme {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--bg-light) 50%);
}

body.dark-theme {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--bg-dark) 100%);
}

.top-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    z-index: 100;
}

body.ltr .top-controls {
    justify-content: flex-end;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.light-theme .control-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.dark-theme .control-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dark);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.control-btn svg {
    width: 18px;
    height: 18px;
}

.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    flex-wrap: wrap;
}

body.ltr .login-wrapper {
    flex-direction: row-reverse;
}

.branding-section {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
}

.light-theme .branding-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.dark-theme .branding-section {
    background: transparent;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.light-theme .brand-title { color: var(--primary); }
.dark-theme .brand-title { color: var(--primary-light); }

.brand-title .highlight { display: block; }
.light-theme .brand-title .highlight { color: var(--primary); }
.dark-theme .brand-title .highlight { color: var(--text-dark); }

.brand-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 15px 20px;
    border-radius: 12px;
}

.light-theme .brand-description { color: var(--primary); background: transparent; }
.dark-theme .brand-description { color: var(--text-muted-dark); background: transparent; }

.feature-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.light-theme .badge { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.dark-theme .badge { background: transparent; color: var(--primary-light); border: 1px solid var(--primary); }

.access-card {
    flex: 1;
    min-width: 380px;
    max-width: 420px;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.light-theme .access-card { background: var(--card-light); }
.dark-theme .access-card { background: var(--card-dark); border: 1px solid var(--border-dark); }

.card-header { text-align: center; margin-bottom: 30px; }

.card-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.light-theme .card-title { color: var(--primary); }
.dark-theme .card-title { color: var(--primary-light); }

.card-subtitle { font-size: 0.95rem; }
.light-theme .card-subtitle { color: var(--text-muted-light); }
.dark-theme .card-subtitle { color: var(--text-muted-dark); }

.login-form { display: flex; flex-direction: column; gap: 20px; margin-bottom: 25px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label { font-size: 0.95rem; font-weight: 600; }
.light-theme .form-label { color: var(--text-light); }
.dark-theme .form-label { color: var(--text-dark); }

.form-input {
    padding: 14px 18px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.light-theme .form-input { background: var(--bg-light); border: 2px solid transparent; color: var(--text-light); }
.dark-theme .form-input { background: hsla(175, 32%, 24%, 0.1); border: 2px solid var(--border-dark); color: var(--text-dark); }
.form-input:focus { border-color: var(--primary); }
.light-theme .form-input::placeholder { color: var(--text-muted-light); }
.dark-theme .form-input::placeholder { color: var(--text-muted-dark); }

.error-message {
    display: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    background: rgba(220, 53, 69, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

.error-message.show { display: block; }

.enter-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.enter-btn:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px hsla(175, 32%, 24%, 0.3);
}

.enter-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

.enter-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.enter-btn.loading .spinner { display: block; }
.enter-btn.loading .btn-text { display: none; }

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

.divider { display: flex; align-items: center; gap: 15px; margin: 25px 0; }
.divider-line { flex: 1; height: 1px; }
.light-theme .divider-line { background: var(--border-light); }
.dark-theme .divider-line { background: var(--border-dark); }
.divider-text { font-size: 0.85rem; }
.light-theme .divider-text { color: var(--text-muted-light); }
.dark-theme .divider-text { color: var(--text-muted-dark); }

.default-accounts { padding: 15px; border-radius: 12px; font-size: 0.85rem; }
.light-theme .default-accounts { background: var(--bg-light); color: var(--text-muted-light); }
.dark-theme .default-accounts { background: hsla(175, 32%, 24%, 0.1); color: var(--text-muted-dark); }

.default-accounts-title { font-weight: 600; margin-bottom: 10px; text-align: center; }
.light-theme .default-accounts-title { color: var(--primary); }
.dark-theme .default-accounts-title { color: var(--primary-light); }

.account-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-item:last-child { border-bottom: none; }
.account-item:hover { opacity: 0.7; }
.light-theme .account-item { border-color: var(--border-light); }
.dark-theme .account-item { border-color: var(--border-dark); }

.access-notice {
    text-align: center;
    font-size: 0.85rem;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid;
}

.light-theme .access-notice { color: var(--text-muted-light); border-color: var(--border-light); }
.dark-theme .access-notice { color: var(--text-muted-dark); border-color: var(--border-dark); }

@media (max-width: 900px) {
    .login-wrapper { flex-direction: column; gap: 40px; }
    body.ltr .login-wrapper { flex-direction: column; }
    .branding-section { text-align: center; }
    .feature-badges { justify-content: center; }
    .brand-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .access-card { min-width: 100%; padding: 25px; }
}
