:root {
    --brand: #F39221;
    --brand-hover: #e0851d;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --border-color: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
}

/* Container centr� avec largeur max */
main .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Auth Panel */
.auth-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.brand-logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--header-text));
    border-radius: 16px;
    color: white;
    font-size: 28px;
}

/* Info Section */
.info-section {
    padding: 2rem 0;
}

.info-content {
    max-width: 540px;
}

.info-section .brand-logo {
    margin: 0;
}

.info-section h1 {
    color: var(--text-primary);
    line-height: 1.2;
}

.info-section .lead {
    font-size: 1.125rem;
    line-height: 1.7;
}

.features-list {
    margin-top: 2rem;
}

.feature-item {
    padding: 1rem 0;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 146, 33, 0.1);
    border-radius: 10px;
    color: var(--brand);
    font-size: 18px;
}

.feature-item h5 {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Form Styles */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(243, 146, 33, 0.1);
    outline: none;
}

.form-floating > label {
    color: var(--text-secondary);
    padding: 12px 16px;
}

.form-check-input {
    border-color: var(--border-color);
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--brand);
        border-color: var(--brand);
    }

.form-check-label {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
}


/* Links */
.link-fancy {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.link-fancy:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border-color);
    position: relative;
    margin: 24px 0;
}

    .divider::after {
        content: "ou";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0 16px;
        background: var(--bg-white);
        color: var(--text-secondary);
        font-size: 14px;
    }

/* Toggle Password */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

    .toggle-password:hover {
        background: var(--bg-light);
        color: var(--text-primary);
    }

    .toggle-password:focus {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }

/* Footer */
footer a {
    transition: color 0.2s ease;
}

    footer a:hover {
        color: var(--brand) !important;
    }

/* Responsive */
@media (max-width: 991.98px) {
    /* Section info cach�e sur tablette et mobile */
    .info-section {
        display: none;
    }

    /* Centrer le formulaire sur mobile */
    .auth-panel {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 575.98px) {
    .auth-panel {
        border-radius: 0;
        border-left: none;
        border-right: none;
        max-width: 100%;
    }

    body {
        background: var(--bg-white);
    }

    main .container-fluid {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
