/* Variables globales */
:root {
    --primary-color: #4c6ef5;
    --primary-dark: #3b5bdb;
    --primary-light: #748ffc;
    --secondary-color: #12b886;
    --secondary-dark: #0ca678;
    --text-color: #212529;
    --text-muted: #6c757d;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --danger: #fa5252;
    --warning: #fcc419;
    --success: #40c057;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--light-gray);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.blue-text {
    color: var(--primary-color);
}

/* Boutons */
.btn-primary, .btn-secondary, .btn-google, .btn-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-height: 48px;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--medium-gray);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--light-gray);
}

.btn-google, .btn-linkedin {
    background-color: var(--white);
    color: var(--text-color);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.btn-google i, .btn-linkedin i {
    margin-right: 12px;
    font-size: 18px;
}

.btn-google:hover, .btn-linkedin:hover {
    background-color: var(--light-gray);
}

/* Formulaires */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.2);
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 8px;
}

.forgot-password {
    font-size: 0.9rem;
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--medium-gray);
}

.divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.signup-link {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
}

/* Page de connexion et inscription */
.login-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.login-panel, .promo-panel {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.login-panel {
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo i {
    font-size: 24px;
    margin-right: 12px;
    color: var(--primary-color);
}

.slogan {
    color: var(--text-muted);
    font-size: 1rem;
}

.auth-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    border-radius: var(--radius);
    background-color: var(--white);
}

.auth-form h2 {
    margin-bottom: 24px;
    text-align: center;
}

.promo-panel {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-content {
    max-width: 600px;
}

.promo-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.promo-content p {
    margin-bottom: 32px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.feature {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
}

.feature i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--white);
}

.feature h3 {
    margin-bottom: 12px;
}

.feature p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius);
}

.quote {
    margin-bottom: 16px;
}

.quote i {
    font-size: 24px;
    margin-right: 8px;
    opacity: 0.8;
}

.author {
    display: flex;
    align-items: center;
}

.author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.info strong {
    display: block;
}

.info span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(64, 192, 87, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(250, 82, 82, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-warning {
    background-color: rgba(252, 196, 25, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(76, 110, 245, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* Système d'étapes pour l'inscription */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--medium-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: var(--transition);
    z-index: 1;
}

.step.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.step.completed {
    background-color: var(--success);
    color: var(--white);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--medium-gray);
    margin: 0 4px;
    transition: var(--transition);
}

.step-line.active {
    background-color: var(--primary-color);
}

.registration-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.registration-step {
    display: none;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.registration-step.active {
    display: block;
}

.slide-in-right {
    animation-name: slideInRight;
}

.slide-in-left {
    animation-name: slideInLeft;
}

.slide-out-left {
    animation-name: slideOutLeft;
}

.slide-out-right {
    animation-name: slideOutRight;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.registration-step h3 {
    margin-bottom: 8px;
}

.step-description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

/* Force du mot de passe */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--medium-gray);
    border-radius: 2px;
    margin-bottom: 4px;
}

.strength-progress {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: var(--transition);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Email status */
.email-status {
    margin-top: 8px;
    font-size: 0.9rem;
}

.email-valid {
    color: var(--success);
}

.email-invalid {
    color: var(--danger);
}

/* Benefits list */
.registration-benefits {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 32px;
}

.registration-benefits h3 {
    margin-bottom: 16px;
}

.registration-benefits ul {
    list-style: none;
}

.registration-benefits li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.registration-benefits li i {
    margin-right: 12px;
    color: var(--success);
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

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

.loading-overlay p {
    color: var(--white);
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }

    .promo-panel {
        display: none;
    }

    .login-panel {
        padding: 24px;
    }

    .auth-form {
        padding: 16px;
    }
}