﻿/* Styles pour la page de connexion DevLife */
.login-page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Arrière-plan flouté */
.login-background-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23667eea;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%23764ba2;stop-opacity:0.3" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/></svg>');
    background-size: cover;
    filter: blur(8px);
    z-index: 0;
}

/* Zone de connexion en avant */
.login-container {
    position: relative;
    z-index: 10;
}

.login-container .card {
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-container .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.2) !important;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(255,255,255,0.1);
}

.form-control-lg {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
}

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

.btn-lg {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.min-vh-100 {
    min-height: 100vh;
}

/* Largeur de la fenêtre de connexion */
.login-container-wide {
    max-width: 540px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 992px) {
    .login-container-wide {
        max-width: 700px;
    }
}

/* Hero Message Styles */
.login-hero-message {
    position: relative;
    z-index: 10;
    animation: fadeInDown 0.8s ease-out;
}

.login-hero-message .text-gradient {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Comparison Badges Mini */
.comparison-badges-mini {
    padding: 1rem 0;
}

.badge-pill-mini {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.badge-pill-mini:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.comparison-separator-mini {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
}

/* Comparison Cards - Modernisées */
.comparison-card-modern {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 10;
    border: 2px solid transparent;
}

.comparison-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.comparison-card-modern.negative {
    border-color: rgba(220, 53, 69, 0.3);
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.comparison-card-modern.neutral {
    border-color: rgba(108, 117, 125, 0.3);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.comparison-card-modern.positive {
    border-color: rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.comparison-badge-modern {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.negative-badge {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.info-badge {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.positive-badge {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.comparison-header-modern {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.comparison-icon-modern {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.negative-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.info-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.positive-icon {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.comparison-header-modern h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.comparison-subtitle-modern {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0;
}

.comparison-body-modern {
    padding: 0.5rem 0;
}

.comparison-flow-modern {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.flow-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: transform 0.3s, background 0.3s;
}

.flow-item-modern:hover {
    transform: translateX(5px);
}

.flow-item-modern.negative {
    background: rgba(220, 53, 69, 0.05);
}

.flow-item-modern.negative:hover {
    background: rgba(220, 53, 69, 0.1);
}

.flow-item-modern.neutral {
    background: rgba(108, 117, 125, 0.05);
}

.flow-item-modern.neutral:hover {
    background: rgba(108, 117, 125, 0.1);
}

.flow-item-modern.positive {
    background: rgba(40, 167, 69, 0.05);
}

.flow-item-modern.positive:hover {
    background: rgba(40, 167, 69, 0.1);
}

.flow-icon-mini {
    flex-shrink: 0;
}

.flow-icon-mini i {
    font-size: 1.5rem;
}

.flow-text {
    flex: 1;
}

.flow-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: #212529;
}

.flow-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* DevLife Message Card */
.devlife-message-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 5px solid #667eea;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
    transition: transform 0.3s, box-shadow 0.3s;
}

.devlife-message-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.devlife-message-card .message-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.devlife-message-card .message-content {
    flex: 1;
}

.devlife-message-card .message-content h3 {
    color: #212529;
    margin-bottom: 1rem;
}

.devlife-message-card .message-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.devlife-message-card .message-content p:last-child {
    margin-bottom: 0;
}

.devlife-message-card .message-content em {
    color: #667eea;
    font-weight: 600;
}

/* Old Comparison Cards (kept for backward compatibility) */
.comparison-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 10;
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.comparison-card.negative {
    border: 2px solid #dc3545;
}

.comparison-card.positive {
    border: 2px solid #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}

.comparison-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.comparison-card.negative .comparison-icon {
    color: #dc3545;
}

.comparison-card.positive .comparison-icon {
    color: #28a745;
}

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

.comparison-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-card.negative .comparison-list li i {
    color: #dc3545;
}

.comparison-card.positive .comparison-list li i {
    color: #28a745;
    font-weight: bold;
}

/* Benefits Grid */
.benefits-grid {
    position: relative;
    z-index: 10;
}

.benefit-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.benefit-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.benefit-icon {
    font-size: 2rem;
    color: #667eea;
    flex-shrink: 0;
}

.benefit-content h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.benefit-content p {
    color: #666;
}

/* Feature Pills */
.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.85rem;
}

.feature-pill i {
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Button Animation */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spinner 0.8s linear infinite;
}

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

.btn-loading .btn-text {
    visibility: hidden;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.btn-success-animation {
    position: relative;
}

.btn-success-animation::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: white;
    animation: checkmark 0.5s ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .login-background-blur {
        opacity: 0.5;
    }
    .login-container .card {
        background-color: #1e1e1e;
        color: #fff;
    }
    .form-control-lg {
        background-color: #2d2d2d;
        border-color: #444;
        color: #fff;
    }
    .form-control-lg::placeholder {
        color: #999;
    }
}

/* Forcer le thème clair sur la fenêtre de login */
.login-theme-light .login-container,
.login-theme-light .card,
.login-theme-light .card-header,
.login-theme-light .card-body,
.login-theme-light .form-control-lg,
.login-theme-light .form-check-label,
.login-theme-light .alert,
.login-theme-light .comparison-card,
.login-theme-light .benefit-card,
.login-theme-light .feature-pill {
    background-color: #fff !important;
    color: #222 !important;
    border-color: #e9ecef !important;
}

.login-theme-light .comparison-card.positive {
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%) !important;
}

.login-theme-light .form-control-lg {
    background-color: #fff !important;
    color: #222 !important;
    border: 2px solid #e9ecef !important;
}

.login-theme-light .form-control-lg:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

/* Responsive Improvements */
@media (max-width: 992px) {
    .login-hero-message h1 {
        font-size: 2.5rem;
    }
    
    .comparison-card-modern {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .login-hero-message h1 {
        font-size: 2rem;
    }
    
    .login-hero-message .h4 {
        font-size: 1.2rem;
    }
    
    .comparison-badges-mini {
        flex-direction: column;
        align-items: center;
    }
    
    .badge-pill-mini {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .comparison-separator-mini {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .comparison-card-modern {
        padding: 1.5rem;
    }
    
    .comparison-badge-modern {
        top: -10px;
        right: 10px;
        left: 10px;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .comparison-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .comparison-header-modern h3 {
        font-size: 1.1rem;
    }
    
    .flow-item-modern {
        padding: 0.6rem;
    }
    
    .flow-icon-mini i {
        font-size: 1.3rem;
    }
    
    .flow-text strong {
        font-size: 0.95rem;
    }
    
    .benefit-card {
        padding: 0.8rem;
    }
    
    .benefit-icon {
        font-size: 1.5rem;
    }
    
    .devlife-message-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .devlife-message-card .message-icon {
        margin: 0 auto;
    }
    
    .login-container-wide {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .login-hero-message h1 {
        font-size: 1.75rem;
    }
    
    .login-hero-message p.lead {
        font-size: 1rem;
    }
    
    .comparison-card-modern {
        padding: 1rem;
    }
    
    .flow-item-modern:hover {
        transform: translateX(3px);
    }
    
    .comparison-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .benefit-card {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-icon {
        margin-bottom: 0.5rem;
    }
    
    .devlife-message-card .message-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .devlife-message-card .message-content p {
        font-size: 0.9rem;
    }
}

/* Animations améliorées */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.comparison-icon-modern:hover {
    animation: pulse 1s ease-in-out infinite;
}

.badge-pill-mini.bg-success:hover {
    animation: pulse 0.8s ease-in-out;
}

    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15) !important;
}

.login-theme-light .btn-primary,
.login-theme-light .btn-outline-primary {
    background-color: #667eea !important;
    color: #fff !important;
    border-color: #667eea !important;
}

.login-theme-light .btn-primary:hover,
.login-theme-light .btn-outline-primary:hover {
    background-color: #5a67d8 !important;
    border-color: #5a67d8 !important;
}

.login-theme-light .alert-info {
    background-color: #e9f7fe !important;
    color: #0c5460 !important;
    border-color: #b8daff !important;
}

.login-theme-light .alert-danger {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

.login-theme-light .alert-success {
    background-color: #d4edda !important;
    color: #155724 !important;
    border-color: #c3e6cb !important;
}

.login-theme-light .alert-warning {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffeeba !important;
}

.login-theme-light .form-check-input:checked {
    background-color: #667eea !important;
    border-color: #667eea !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-hero-message h1 {
        font-size: 1.75rem;
    }
    
    .login-hero-message .h4 {
        font-size: 1rem;
    }
    
    .comparison-card {
        padding: 1rem;
    }
    
    .comparison-icon {
        font-size: 2rem;
    }
    
    .benefit-card {
        padding: 0.75rem;
    }
    
    .benefit-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .comparison-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .feature-pill {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
}
