/* template/css/register.css */
.register-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
}

/* Variables CSS communes */
:root {
    --primary-blue: #1a3a8f;
    --secondary-blue: #2c5aa0;
    --whatsapp-green: #25d366;
    --success-green: #28a745;
    --error-red: #dc3545;
    --border-color: #e0e0e0;
    --light-bg: #f8f9fa;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.register-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.register-hero::before {
    content: '';
    position: absolute;
    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 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.illustration-container {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Register Card */
.register-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.register-logo {
    margin-bottom: 20px;
}

.register-logo img {
    max-width: 200px;
    height: auto;
}

.register-title h2 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 10px;
}

.register-title p {
    color: #666;
    margin: 0;
}

/* Form Styles */
.register-form {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1rem;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #666;
    min-width: 50px;
    justify-content: center;
}

.form-control {
    border: 2px solid var(--border-color);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 143, 0.1);
}

.btn-toggle-password,
.btn-toggle-password-confirm {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-left: none;
    color: #666;
    border-radius: 0 10px 10px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-toggle-password:hover,
.btn-toggle-password-confirm:hover {
    background: #e9ecef;
    color: #333;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--error-red);
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: #666;
}

/* Validation */
.is-valid {
    border-color: var(--success-green) !important;
}

.is-invalid {
    border-color: var(--error-red) !important;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--error-red);
    font-size: 0.9rem;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--error-red);
}

/* Checkbox Styles */
.form-check {
    margin: 15px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-label {
    color: #333;
    font-size: 0.95rem;
    cursor: pointer;
}

.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Register Button */
.btn-register {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    background: linear-gradient(135deg, #153077, var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 58, 143, 0.3);
}

.btn-register:active {
    transform: translateY(0);
}

/* Register Footer */
.register-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.register-footer p {
    color: #666;
    margin-bottom: 20px;
}

.footer-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-login-link {
    background: var(--primary-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-login-link:hover {
    background: #153077;
    color: white;
    transform: translateY(-2px);
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
}

.security-notice i {
    color: var(--success-green);
}

/* Benefits Section */
.benefits-section {
    background: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 20px;
}

.benefit-card h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.register-cta {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-light, .btn-whatsapp {
    padding: 15px 30px;
    font-weight: 600;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-light {
    background: white;
    color: var(--primary-blue);
    border: none;
}

.btn-light:hover {
    background: #f8f9fa;
    color: #153077;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: translateY(-2px);
}

/* Classes d'animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .register-hero {
        text-align: center;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .feature-item {
        justify-content: center;
        width: 100%;
        max-width: 250px;
    }
    
    .register-card {
        padding: 30px;
        margin-top: -30px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-light, .btn-whatsapp {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .register-card {
        padding: 25px;
    }
    
    .register-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .benefit-card {
        padding: 20px;
    }
}