/* Styles pour les pages d'authentification (login, register, etc.) */

.auth-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.login-form .form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.login-form .form-check input {
    width: auto;
    margin-right: 0.5rem;
}

.login-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: var(--secondary-color);
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-links p {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.auth-links p a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Description de la page d'authentification */
.auth-description {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Section d'authentification alternative */
.alternate-auth {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.alternate-auth p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.alternate-auth a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.alternate-auth a:hover {
    text-decoration: underline;
}

/* Sélecteur de type d'utilisateur */
.user-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.user-type-option {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-type-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

.user-type-option.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.user-type-option i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.user-type-option div {
    font-weight: 600;
    margin-bottom: 5px;
}

.user-type-option small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Alertes */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
    
    .auth-container h1 {
        font-size: 1.5rem;
    }
    
    .user-type-selector {
        flex-direction: column;
    }
}

/* Styles pour les étapes du processus */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem;
}

.step h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.step p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Styles pour les sections de formulaire */
.form-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.form-section h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Responsive pour les étapes */
@media (max-width: 768px) {
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
}

/* Variables CSS pour la cohérence */
:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --text-color: #212529;
    --border-color: #dee2e6;
}

/* Styles pour les éléments spécifiques à join_community.php */
.search-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-container input {
    width: 100%;
}

.search-container button {
    width: 100%;
    padding: 0.75rem 1rem;
}

.search-results {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-results h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.community-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.community-result:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.community-info {
    flex: 1;
}

.community-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.community-description {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.select-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.readonly-field {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* Styles pour les formulaires de type join */
.join-form .form-group {
    margin-bottom: 1.25rem;
}

.join-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.join-form input,
.join-form select,
.join-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
}

.join-form .form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.join-form .form-check input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.join-form .form-check label {
    margin-bottom: 0;
    line-height: 1.4;
}

/* Responsive pour les éléments de recherche */
@media (max-width: 768px) {
    .community-result {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .select-button {
        width: 100%;
    }
} 