body.auth-page.theme-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Layout deux colonnes */
.demo-layout {
    width: 100%;
    max-width: 880px;
    padding: 15px;
    animation: slideUp 0.6s ease;
}

.demo-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    min-height: 520px;
}

/* Colonne gauche - Présentation */
.demo-info {
    flex: 0 0 42%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-info__logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}

.demo-info__logo img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
}

/* Style adapté si le logo contient une image */
.demo-info__logo.has-logo {
    width: auto;
    height: 40px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    justify-content: flex-start;
}

.demo-info__logo.has-logo img {
    height: 40px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.demo-info__logo i {
    font-size: 24px;
    color: white;
}

.demo-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-info__subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 28px;
    line-height: 1.5;
}

.demo-info__features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.demo-info__features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.demo-info__features li:last-child {
    margin-bottom: 0;
}

.demo-info__features .feature-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.demo-info__features .feature-label {
    font-weight: 600;
    display: block;
}

.demo-info__features .feature-detail {
    opacity: 0.75;
    font-size: 12px;
}

.demo-info__limits {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.demo-info__limits-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 10px;
}

.demo-info__limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
}

.demo-info__limit-row span:last-child {
    background: rgba(255,255,255,0.15);
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 11px;
}

/* Colonne droite - Formulaire */
.demo-form {
    flex: 1;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-form__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.demo-form__subtitle {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 24px;
}

.demo-form .form-floating {
    margin-bottom: 16px;
}

.demo-form .form-floating > .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    height: calc(3.2rem + 2px);
    font-size: 14px;
    transition: all 0.3s;
}

.demo-form .form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.12);
}

.demo-form .form-floating > label {
    padding: 0.85rem 0.75rem;
    font-size: 14px;
}

.demo-form .btn-demo {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s;
    margin-top: 4px;
}

.demo-form .btn-demo:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
    color: white;
}

.demo-form .btn-demo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.demo-form__footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #6c757d;
}

.demo-form__footer a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.demo-form__footer a:hover {
    text-decoration: underline;
}

/* Toggle password */
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    cursor: pointer;
    z-index: 4;
    padding: 4px;
    border: none;
    background: none;
}

.pwd-toggle:hover {
    color: #667eea;
}

/* Loading */
.loading .loading-spinner { display: inline-block; }
.loading .btn-text { display: none; }
.loading-spinner { display: none; }

/* Alert */
.demo-form .alert {
    border-radius: 10px;
    border: none;
    font-size: 13px;
    margin-bottom: 16px;
}

/* Responsive - mobile */
@media (max-width: 768px) {
    .demo-card {
        flex-direction: column;
        min-height: auto;
    }
    .demo-info {
        flex: none;
        padding: 30px 25px;
    }
    .demo-form {
        padding: 30px 25px;
    }
    .demo-layout {
        max-width: 480px;
    }
}
