/* Styles pour le formulaire de connexion moderne */
.connection-wrapper {
    margin-bottom: 2rem;
}

.connection-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) {
    .connection-container {
        grid-template-columns: 1fr 1fr;
        min-height: 600px;
    }
}

/* Section formulaire */
.connection-form-section {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .connection-form-section {
        padding: 4rem 3rem;
    }
}

.connection-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.connection-form-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.3);
}

.connection-form-icon {
    font-size: 1.75rem;
    color: white;
}

.connection-form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.connection-form-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Formulaire */
.connection-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.connection-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.connection-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .connection-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.connection-form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.connection-form-label-icon {
    color: #667eea;
    font-size: 0.875rem;
}

.connection-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
    background: #f9fafb;
}

.connection-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.connection-form-input:hover {
    border-color: #d1d5db;
}

.connection-form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.connection-form-checkbox:hover {
    background: #e5e7eb;
}

.connection-form-checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #667eea;
    cursor: pointer;
}

.connection-form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.connection-form-checkbox-label i {
    color: #667eea;
}

.connection-form-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(102, 126, 234, 0.3);
}

.connection-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.4);
}

.connection-form-submit:active {
    transform: translateY(0);
}

.connection-form-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Section image */
.connection-image-section {
    display: none;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .connection-image-section {
        display: flex;
    }
}

.connection-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    z-index: 1;
}

.connection-image-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.connection-image-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.connection-image-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.connection-image-text {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.connection-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.connection-feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    opacity: 0.95;
}

.connection-feature i {
    color: #a7f3d0;
    font-size: 1.25rem;
}

.connection-image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.connection-image-decoration::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Responsive */
@media (max-width: 1023px) {
    .connection-form-section {
        padding: 2rem 1.5rem;
    }
    
    .connection-form-title {
        font-size: 1.5rem;
    }
}
