:root {
    /* Dark Mode - Red Theme */
    --bg-body: radial-gradient(circle at 90% 10%, rgba(69, 10, 10, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(69, 10, 10, 0.15) 0%, transparent 40%), #121212;
    --bg-card: radial-gradient(circle at 0% 0%, rgba(69, 10, 10, 0.08) 0%, transparent 35%), #18181b;
    --border-card: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #d4d4d8;
    --bg-input: #27272a;
    --border-input: #450a0a;
    --border-input-hover: #b91c1c;
    --input-text: #ffffff;
    --input-placeholder: #a1a1aa;
    --icon-color: #a1a1aa;
    --icon-focus: #fca5a5;
    --bg-autofill: #27272a;
    --text-autofill: #ffffff;
    --bg-option: #18181b;
    --concave-color: #18181b;
    --concave-shadow: #18181b;
    --bg-form-accent: radial-gradient(circle at 10% 10%, rgba(69, 10, 10, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(69, 10, 10, 0.30) 0%, transparent 45%);
    --link-color: #fca5a5;
    --link-hover: #fee2e2;
    --bg-bubble: #ffffff;
    --text-bubble: #450a0a;
    --arrow-bubble: #ffffff;
    --bg-error: #450a0a;
    --border-error: #b91c1c;
    --text-error: #fecaca;
    --bg-success: #052e16;
    --border-success: #166534;
    --text-success: #bbf7d0;
    --shadow-focus: rgba(239, 68, 68, 0.3);
    --version-bg: rgba(255, 255, 255, 0.1);
    --toggle-bg: #7f1d1d;
    --toggle-handle: #ffffff;
    --btn-bg: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    --btn-shadow: rgba(220, 38, 38, 0.4);
    --btn-shadow-sm: rgba(220, 38, 38, 0.25);
    --btn-shadow-hover: rgba(220, 38, 38, 0.5);
    --btn-shadow-hover-sm: rgba(220, 38, 38, 0.3);
}

[data-theme="light"] {
    --bg-body: radial-gradient(circle at 90% 10%, rgba(239, 68, 68, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(69, 10, 10, 0.05) 0%, transparent 40%), linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    --bg-card: radial-gradient(circle at 0% 0%, rgba(239, 68, 68, 0.1) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(69, 10, 10, 0.05) 0%, transparent 45%), #ffffff;
    --border-card: 1px solid #fee2e2;
    --shadow-card: 0 25px 50px -12px rgba(69, 10, 10, 0.05), 0 0 0 1px rgba(69, 10, 10, 0.02);
    --text-primary: #450a0a;
    --text-secondary: #7f1d1d;
    --bg-input: #fff5f5;
    --border-input: #fecaca;
    --border-input-hover: #f87171;
    --input-text: #450a0a;
    --input-placeholder: #ef4444;
    --icon-color: #ef4444;
    --icon-focus: #b91c1c;
    --bg-autofill: #fff5f5;
    --text-autofill: #450a0a;
    --bg-option: #ffffff;
    --concave-color: #ffffff;
    --concave-shadow: #ffffff;
    --bg-form-accent: radial-gradient(circle at 10% 10%, rgba(69, 10, 10, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(69, 10, 10, 0.20) 0%, transparent 50%);
    --link-color: #7f1d1d;
    --link-hover: #450a0a;
    --bg-bubble: #450a0a;
    --text-bubble: #ffffff;
    --arrow-bubble: #450a0a;
    --bg-error: #fff1f2;
    --border-error: #fecaca;
    --text-error: #7f1d1d;
    --bg-success: #f0fdf4;
    --border-success: #86efac;
    --text-success: #166534;
    --shadow-focus: rgba(239, 68, 68, 0.2);
    --version-bg: rgba(0, 0, 0, 0.05);
    --toggle-bg: #fecaca;
    --toggle-handle: #ffffff;
    --btn-bg: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
    --btn-shadow: rgba(220, 38, 38, 0.35);
    --btn-shadow-sm: rgba(220, 38, 38, 0.2);
    --btn-shadow-hover: rgba(220, 38, 38, 0.45);
    --btn-shadow-hover-sm: rgba(220, 38, 38, 0.25);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.5s ease;
}

/* =====================================================
   Theme Switcher
   ===================================================== */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

/* =====================================================
   Scheme Picker (single button + flyout)
   ===================================================== */
.scheme-picker {
    position: relative;
    display: flex;
    align-items: center;
}

.scheme-picker-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.55);
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

    .scheme-picker-btn:hover {
        transform: scale(1.15);
        box-shadow: 0 3px 10px rgba(0,0,0,0.55);
    }

.scheme-flyout {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: rgba(24, 24, 27, 0.96);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.95);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
    white-space: nowrap;
}

[data-theme="light"] .scheme-flyout {
    background: rgba(255,255,255,0.96);
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.scheme-flyout.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scheme-flyout-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
    transition: transform 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

    .scheme-flyout-dot:hover {
        transform: scale(1.25);
    }

    .scheme-flyout-dot.is-active {
        border-color: #fff;
        transform: scale(1.15);
        box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
    }

[data-theme="light"] .scheme-flyout-dot.is-active {
    border-color: #333;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--toggle-bg);
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: var(--toggle-handle);
        transition: .4s;
        border-radius: 50%;
        z-index: 2;
    }

.fa-sun, .fa-moon {
    font-size: 14px;
    z-index: 1;
}

.fa-sun {
    color: #facc15;
}

.fa-moon {
    color: #fecaca;
}

input:checked + .slider {
    background-color: #ef4444;
}

[data-theme="light"] .slider {
    background-color: #fca5a5;
}

[data-theme="dark"] .slider {
    background-color: #b91c1c;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* =====================================================
   Main Card Container
   ===================================================== */
.login-card {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 650px;
    background: var(--bg-card);
    border: var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: background 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

/* =====================================================
   Alert Boxes (Error & Success)
   ===================================================== */
.error-box,
.success-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    animation: slideDown 0.3s ease-out;
}

.error-box {
    background-color: var(--bg-error);
    border: 1px solid var(--border-error);
    color: var(--text-error);
}

.success-box {
    background-color: var(--bg-success);
    border: 1px solid var(--border-success);
    color: var(--text-success);
}

.error-content,
.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-message,
.success-message {
    font-size: 14px;
    font-weight: 500;
}

.close-error {
    background: none;
    border: none;
    color: var(--text-error);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .close-error:hover {
        opacity: 1;
    }

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* =====================================================
   Left Side - Form Section
   ===================================================== */
.form-section {
    width: 50%;
    min-width: 380px;
    padding: 50px 60px 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

    /* Concave Edge Effect */
    .form-section::after {
        content: '';
        display: block;
        position: absolute;
        top: 50%;
        left: 93%;
        transform: translateY(-50%);
        width: 1500px;
        height: 1500px;
        border-radius: 50%;
        background: transparent;
        box-shadow: inset 20px 0 80px 10px var(--concave-shadow), 0 0 0 5000px var(--concave-color);
        z-index: -2;
        pointer-events: none;
        transition: box-shadow 0.3s ease;
    }

    /* Gradient Overlay for Form Section Background */
    .form-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-form-accent);
        z-index: -1;
        pointer-events: none;
        transition: background 0.3s ease;
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
    }

/* =====================================================
   Logo Area
   ===================================================== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.1s;
    opacity: 0;
}

.client-logo {
    width: auto;
    height: 70px;
    max-width: 250px;
    /*filter: brightness(0) invert(1);*/
}

/* =====================================================
   Typography
   ===================================================== */
.title {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.15s;
    opacity: 0;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 35px;
    font-weight: 400;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.2s;
    opacity: 0;
}

/* =====================================================
   Form Styling
   ===================================================== */
.login-form {
    position: relative;
    z-index: 3;
}

.input-group {
    margin-bottom: 18px;
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

    .input-group:nth-child(1) {
        animation-delay: 0.25s;
    }

    .input-group:nth-child(2) {
        animation-delay: 0.3s;
    }

    .input-group:nth-child(3) {
        animation-delay: 0.35s;
    }

.input-wrapper {
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 50px;
    transition: all 0.25s ease;
    position: relative;
}

    .input-wrapper:hover {
        border-color: var(--border-input-hover);
    }

    .input-wrapper:focus-within {
        border-color: #ef4444;
        box-shadow: 0 0 0 3px var(--shadow-focus);
    }

[data-theme="light"] .input-wrapper:focus-within {
    background-color: #fff;
}

.input-wrapper input {
    background: transparent;
    border: none;
    color: var(--input-text);
    width: 100%;
    height: 100%;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

    .input-wrapper input::placeholder {
        color: var(--input-placeholder);
        font-weight: 400;
    }

    .input-wrapper input:-webkit-autofill,
    .input-wrapper input:-webkit-autofill:hover,
    .input-wrapper input:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px var(--bg-autofill) inset;
        -webkit-text-fill-color: var(--text-autofill);
        caret-color: var(--text-autofill);
        transition: background-color 5000s ease-in-out 0s;
    }

.input-icon {
    color: var(--icon-color);
    font-size: 1.1rem;
    margin-left: 12px;
    transition: color 0.25s ease;
}

.input-wrapper:focus-within .input-icon {
    color: var(--icon-focus);
}

.password-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .password-toggle:hover .input-icon {
        color: #ef4444;
    }

/* =====================================================
   Form Options (Remember Me & Forgot Pass)
   ===================================================== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    margin-top: -5px;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
    position: relative;
    padding-left: 28px;
}

    .remember-me input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remember-me:hover input ~ .checkmark {
    border-color: var(--border-input-hover);
}

.remember-me input:checked ~ .checkmark {
    background-color: #dc2626;
    border-color: #dc2626;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.remember-me input:checked ~ .checkmark:after {
    display: block;
}

.remember-me .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password-link {
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .forgot-password-link:hover {
        color: var(--link-hover);
        text-decoration: underline;
    }

/* =====================================================
   Login Button
   ===================================================== */
.login-btn {
    width: 100%;
    padding: 18px 24px;
    margin-top: 12px;
    border: none;
    border-radius: 50px;
    background: var(--btn-bg);
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px var(--btn-shadow), 0 2px 4px var(--btn-shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards 0.4s;
    opacity: 0;
    z-index: 3;
}

    .login-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px var(--btn-shadow-hover), 0 4px 8px var(--btn-shadow-hover-sm);
    }

        .login-btn:hover::before {
            left: 100%;
        }

    .login-btn:active {
        transform: translateY(0) scale(0.98);
    }

    .login-btn:disabled {
        opacity: 0.75;
        cursor: not-allowed;
        transform: none;
    }

    .login-btn.loading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        pointer-events: none;
    }

    .login-btn.loading::after {
        content: '';
        order: -1;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        border: 2.5px solid rgba(255, 255, 255, 0.45);
        border-top-color: white;
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 3;
    animation: fadeIn 0.5s ease forwards 0.45s;
    opacity: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

    .footer a:hover {
        color: var(--link-hover);
        text-decoration: underline;
    }

.version {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 4px 10px;
    background: var(--version-bg);
    border-radius: 12px;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* =====================================================
   Right Side - Image Section (Indigo Gradient)
   ===================================================== */
.image-section {
    width: 60%;
    margin-left: -10%;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 55%, #b91c1c 100%);
}

.illustration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.image-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    pointer-events: none;
}

.image-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(30, 27, 75, 0.4);
    pointer-events: none;
}

/* Task management decorative content */
.image-overlay-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    z-index: 2;
    position: relative;
}

    .image-overlay-content .main-icon {
        font-size: 5rem;
        margin-bottom: 24px;
        display: block;
        color: #a5b4fc;
        opacity: 0.95;
    }

    .image-overlay-content h2 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: #ffffff;
        letter-spacing: -0.3px;
    }

    .image-overlay-content p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.65);
        max-width: 280px;
        margin: 0 auto 32px;
        line-height: 1.7;
    }

.image-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.image-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

    .image-feature-item i {
        font-size: 0.95rem;
        color: #a5b4fc;
        width: 16px;
        flex-shrink: 0;
    }

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        height: auto;
        max-width: 450px;
    }

    .form-section {
        width: 100%;
        min-width: unset;
        padding: 40px 35px 35px;
        order: 2;
    }

        .form-section::after {
            display: none !important;
        }

    .image-section {
        width: 100%;
        margin-left: 0;
        height: 200px;
        order: 1;
    }

    .image-overlay-content .main-icon {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .image-overlay-content h2 {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .image-overlay-content p,
    .image-feature-list {
        display: none;
    }

    .title {
        font-size: 2rem;
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .theme-switch-wrapper {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-section {
        padding: 30px 25px 25px;
    }

    .title {
        font-size: 1.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   Colour Scheme Overrides (login pages)
   data-scheme="X" on <html> — dark mode base
   data-scheme="X"[data-theme="light"] — light overrides
   ===================================================== */

/* ── Ocean ──────────────────────────────────────────── */
[data-scheme="ocean"] {
    --border-input:       #1e3a8a;
    --border-input-hover: #2563eb;
    --icon-focus:         #93c5fd;
    --link-color:         #93c5fd;
    --link-hover:         #bfdbfe;
    --toggle-bg:          #1e3a8a;
    --shadow-focus:       rgba(59, 130, 246, 0.3);
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(30, 58, 138, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(30, 58, 138, 0.15) 0%, transparent 40%), #121212;
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(30, 58, 138, 0.08) 0%, transparent 35%), #18181b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(30, 58, 138, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(30, 58, 138, 0.30) 0%, transparent 45%);
    --text-bubble:        #1e3a8a;
    --btn-bg:             linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    --btn-shadow:         rgba(59, 130, 246, 0.4);
    --btn-shadow-sm:      rgba(59, 130, 246, 0.25);
    --btn-shadow-hover:   rgba(59, 130, 246, 0.5);
    --btn-shadow-hover-sm:rgba(59, 130, 246, 0.3);
}
[data-scheme="ocean"][data-theme="light"] {
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(30, 58, 138, 0.05) 0%, transparent 40%), linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.10) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(30, 58, 138, 0.05) 0%, transparent 45%), #ffffff;
    --border-card:        1px solid #dbeafe;
    --text-primary:       #1e3a8a;
    --text-secondary:     #1d4ed8;
    --bg-input:           #eff6ff;
    --border-input:       #bfdbfe;
    --border-input-hover: #60a5fa;
    --input-placeholder:  #3b82f6;
    --icon-color:         #3b82f6;
    --icon-focus:         #1d4ed8;
    --bg-autofill:        #eff6ff;
    --text-autofill:      #1e3a8a;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(30, 58, 138, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(30, 58, 138, 0.20) 0%, transparent 50%);
    --link-color:         #1d4ed8;
    --link-hover:         #1e3a8a;
    --bg-bubble:          #1e3a8a;
    --text-bubble:        #ffffff;
    --arrow-bubble:       #1e3a8a;
    --shadow-focus:       rgba(59, 130, 246, 0.2);
    --toggle-bg:          #bfdbfe;
    --btn-bg:             linear-gradient(135deg, #3b82f6 0%, #1e3a8a 100%);
    --btn-shadow:         rgba(59, 130, 246, 0.35);
    --btn-shadow-sm:      rgba(59, 130, 246, 0.2);
    --btn-shadow-hover:   rgba(59, 130, 246, 0.45);
    --btn-shadow-hover-sm:rgba(59, 130, 246, 0.25);
}

/* ── Forest ─────────────────────────────────────────── */
[data-scheme="forest"] {
    --border-input:       #14532d;
    --border-input-hover: #16a34a;
    --icon-focus:         #86efac;
    --link-color:         #86efac;
    --link-hover:         #dcfce7;
    --toggle-bg:          #14532d;
    --shadow-focus:       rgba(34, 197, 94, 0.3);
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(20, 83, 45, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(20, 83, 45, 0.15) 0%, transparent 40%), #121212;
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(20, 83, 45, 0.08) 0%, transparent 35%), #18181b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(20, 83, 45, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(20, 83, 45, 0.30) 0%, transparent 45%);
    --text-bubble:        #14532d;
    --btn-bg:             linear-gradient(135deg, #22c55e 0%, #14532d 100%);
    --btn-shadow:         rgba(34, 197, 94, 0.4);
    --btn-shadow-sm:      rgba(34, 197, 94, 0.25);
    --btn-shadow-hover:   rgba(34, 197, 94, 0.5);
    --btn-shadow-hover-sm:rgba(34, 197, 94, 0.3);
}
[data-scheme="forest"][data-theme="light"] {
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(34, 197, 94, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(20, 83, 45, 0.05) 0%, transparent 40%), linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.10) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(20, 83, 45, 0.05) 0%, transparent 45%), #ffffff;
    --border-card:        1px solid #dcfce7;
    --text-primary:       #14532d;
    --text-secondary:     #166534;
    --bg-input:           #f0fdf4;
    --border-input:       #bbf7d0;
    --border-input-hover: #4ade80;
    --input-placeholder:  #22c55e;
    --icon-color:         #22c55e;
    --icon-focus:         #15803d;
    --bg-autofill:        #f0fdf4;
    --text-autofill:      #14532d;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(20, 83, 45, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(20, 83, 45, 0.20) 0%, transparent 50%);
    --link-color:         #166534;
    --link-hover:         #14532d;
    --bg-bubble:          #14532d;
    --text-bubble:        #ffffff;
    --arrow-bubble:       #14532d;
    --shadow-focus:       rgba(34, 197, 94, 0.2);
    --toggle-bg:          #bbf7d0;
    --btn-bg:             linear-gradient(135deg, #22c55e 0%, #14532d 100%);
    --btn-shadow:         rgba(34, 197, 94, 0.35);
    --btn-shadow-sm:      rgba(34, 197, 94, 0.2);
    --btn-shadow-hover:   rgba(34, 197, 94, 0.45);
    --btn-shadow-hover-sm:rgba(34, 197, 94, 0.25);
}

/* ── Violet ─────────────────────────────────────────── */
[data-scheme="violet"] {
    --border-input:       #4c1d95;
    --border-input-hover: #7c3aed;
    --icon-focus:         #c4b5fd;
    --link-color:         #c4b5fd;
    --link-hover:         #ede9fe;
    --toggle-bg:          #4c1d95;
    --shadow-focus:       rgba(139, 92, 246, 0.3);
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(76, 29, 149, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(76, 29, 149, 0.15) 0%, transparent 40%), #121212;
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(76, 29, 149, 0.08) 0%, transparent 35%), #18181b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(76, 29, 149, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(76, 29, 149, 0.30) 0%, transparent 45%);
    --text-bubble:        #1e1b4b;
    --btn-bg:             linear-gradient(135deg, #8b5cf6 0%, #4c1d95 100%);
    --btn-shadow:         rgba(139, 92, 246, 0.4);
    --btn-shadow-sm:      rgba(139, 92, 246, 0.25);
    --btn-shadow-hover:   rgba(139, 92, 246, 0.5);
    --btn-shadow-hover-sm:rgba(139, 92, 246, 0.3);
}
[data-scheme="violet"][data-theme="light"] {
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(76, 29, 149, 0.05) 0%, transparent 40%), linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.10) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(76, 29, 149, 0.05) 0%, transparent 45%), #ffffff;
    --border-card:        1px solid #ede9fe;
    --text-primary:       #1e1b4b;
    --text-secondary:     #3730a3;
    --bg-input:           #f5f3ff;
    --border-input:       #ddd6fe;
    --border-input-hover: #a78bfa;
    --input-placeholder:  #8b5cf6;
    --icon-color:         #8b5cf6;
    --icon-focus:         #6d28d9;
    --bg-autofill:        #f5f3ff;
    --text-autofill:      #1e1b4b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(76, 29, 149, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(76, 29, 149, 0.20) 0%, transparent 50%);
    --link-color:         #3730a3;
    --link-hover:         #1e1b4b;
    --bg-bubble:          #1e1b4b;
    --text-bubble:        #ffffff;
    --arrow-bubble:       #1e1b4b;
    --shadow-focus:       rgba(139, 92, 246, 0.2);
    --toggle-bg:          #ddd6fe;
    --btn-bg:             linear-gradient(135deg, #8b5cf6 0%, #4c1d95 100%);
    --btn-shadow:         rgba(139, 92, 246, 0.35);
    --btn-shadow-sm:      rgba(139, 92, 246, 0.2);
    --btn-shadow-hover:   rgba(139, 92, 246, 0.45);
    --btn-shadow-hover-sm:rgba(139, 92, 246, 0.25);
}

/* ── Amber ──────────────────────────────────────────── */
[data-scheme="amber"] {
    --border-input:       #78350f;
    --border-input-hover: #d97706;
    --icon-focus:         #fcd34d;
    --link-color:         #fcd34d;
    --link-hover:         #fef3c7;
    --toggle-bg:          #78350f;
    --shadow-focus:       rgba(245, 158, 11, 0.3);
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(120, 53, 15, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(120, 53, 15, 0.15) 0%, transparent 40%), #121212;
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(120, 53, 15, 0.08) 0%, transparent 35%), #18181b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(120, 53, 15, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(120, 53, 15, 0.30) 0%, transparent 45%);
    --text-bubble:        #78350f;
    --btn-bg:             linear-gradient(135deg, #f59e0b 0%, #78350f 100%);
    --btn-shadow:         rgba(245, 158, 11, 0.4);
    --btn-shadow-sm:      rgba(245, 158, 11, 0.25);
    --btn-shadow-hover:   rgba(245, 158, 11, 0.5);
    --btn-shadow-hover-sm:rgba(245, 158, 11, 0.3);
}
[data-scheme="amber"][data-theme="light"] {
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(120, 53, 15, 0.05) 0%, transparent 40%), linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.10) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(120, 53, 15, 0.05) 0%, transparent 45%), #ffffff;
    --border-card:        1px solid #fef3c7;
    --text-primary:       #78350f;
    --text-secondary:     #92400e;
    --bg-input:           #fffbeb;
    --border-input:       #fde68a;
    --border-input-hover: #fbbf24;
    --input-placeholder:  #f59e0b;
    --icon-color:         #f59e0b;
    --icon-focus:         #b45309;
    --bg-autofill:        #fffbeb;
    --text-autofill:      #78350f;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(120, 53, 15, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(120, 53, 15, 0.20) 0%, transparent 50%);
    --link-color:         #92400e;
    --link-hover:         #78350f;
    --bg-bubble:          #78350f;
    --text-bubble:        #ffffff;
    --arrow-bubble:       #78350f;
    --shadow-focus:       rgba(245, 158, 11, 0.2);
    --toggle-bg:          #fde68a;
    --btn-bg:             linear-gradient(135deg, #f59e0b 0%, #78350f 100%);
    --btn-shadow:         rgba(245, 158, 11, 0.35);
    --btn-shadow-sm:      rgba(245, 158, 11, 0.2);
    --btn-shadow-hover:   rgba(245, 158, 11, 0.45);
    --btn-shadow-hover-sm:rgba(245, 158, 11, 0.25);
}

/* ── Rose ───────────────────────────────────────────── */
[data-scheme="rose"] {
    --border-input:       #9f1239;
    --border-input-hover: #db2777;
    --icon-focus:         #f9a8d4;
    --link-color:         #f9a8d4;
    --link-hover:         #fce7f3;
    --toggle-bg:          #9f1239;
    --shadow-focus:       rgba(236, 72, 153, 0.3);
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(159, 18, 57, 0.15) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(159, 18, 57, 0.15) 0%, transparent 40%), #121212;
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(159, 18, 57, 0.08) 0%, transparent 35%), #18181b;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(159, 18, 57, 0.45) 0%, transparent 50%), radial-gradient(circle at 90% 90%, rgba(159, 18, 57, 0.30) 0%, transparent 45%);
    --text-bubble:        #881337;
    --btn-bg:             linear-gradient(135deg, #ec4899 0%, #9f1239 100%);
    --btn-shadow:         rgba(236, 72, 153, 0.4);
    --btn-shadow-sm:      rgba(236, 72, 153, 0.25);
    --btn-shadow-hover:   rgba(236, 72, 153, 0.5);
    --btn-shadow-hover-sm:rgba(236, 72, 153, 0.3);
}
[data-scheme="rose"][data-theme="light"] {
    --bg-body:            radial-gradient(circle at 90% 10%, rgba(236, 72, 153, 0.08) 0%, transparent 40%), radial-gradient(circle at 10% 90%, rgba(159, 18, 57, 0.05) 0%, transparent 40%), linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%);
    --bg-card:            radial-gradient(circle at 0% 0%, rgba(236, 72, 153, 0.10) 0%, transparent 55%), radial-gradient(circle at 10% 90%, rgba(159, 18, 57, 0.05) 0%, transparent 45%), #ffffff;
    --border-card:        1px solid #fce7f3;
    --text-primary:       #881337;
    --text-secondary:     #9f1239;
    --bg-input:           #fff1f2;
    --border-input:       #fbcfe8;
    --border-input-hover: #f472b6;
    --input-placeholder:  #ec4899;
    --icon-color:         #ec4899;
    --icon-focus:         #be185d;
    --bg-autofill:        #fff1f2;
    --text-autofill:      #881337;
    --bg-form-accent:     radial-gradient(circle at 10% 10%, rgba(159, 18, 57, 0.35) 0%, transparent 55%), radial-gradient(circle at 90% 90%, rgba(159, 18, 57, 0.20) 0%, transparent 50%);
    --link-color:         #9f1239;
    --link-hover:         #881337;
    --bg-bubble:          #881337;
    --text-bubble:        #ffffff;
    --arrow-bubble:       #881337;
    --shadow-focus:       rgba(236, 72, 153, 0.2);
    --toggle-bg:          #fbcfe8;
    --btn-bg:             linear-gradient(135deg, #ec4899 0%, #9f1239 100%);
    --btn-shadow:         rgba(236, 72, 153, 0.35);
    --btn-shadow-sm:      rgba(236, 72, 153, 0.2);
    --btn-shadow-hover:   rgba(236, 72, 153, 0.45);
    --btn-shadow-hover-sm:rgba(236, 72, 153, 0.25);
}