/* Styles de base pour les formulaires */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

/* Labels plus élégants */
.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
}

/* Inputs plus raffinés */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25;
    color: #1f2937;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

/* Checkbox */
.form-group input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    cursor: pointer;
    vertical-align: middle;
}

.form-group input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Messages d'erreur plus subtils */
.form-error {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Bouton plus moderne */
.form-button {
    width: 100%;
    padding: 0.625rem 1.25rem;
    background-color: var(--accent);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-900);
    color: white;
}

/* Messages de validation */
.messages {
    margin-bottom: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.message.success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.message.error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* Liens dans les formulaires */
.form-link {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.form-link:hover {
    color: var(--accent);
}

/* Séparateurs */
.form-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e5e7eb;
}

.form-divider span {
    padding: 0 1rem;
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-error:not(:empty) + input {
    border-color: #ef4444;
    animation: shake 0.3s ease-in-out;
}

/* Responsive */
@media (max-width: 640px) {
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"] {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}

/* Style pour les champs de formulaire */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    transform: scale(1.001);
}

/* Style pour les messages d'aide */
.form-help {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Style pour les champs requis */
.form-required::after {
    content: "*";
    color: #ef4444;
    margin-left: 0.25rem;
}

/* Style pour les champs désactivés */
.form-input:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}

/* Style pour les champs en erreur */
.form-input-error {
    border-color: #ef4444;
}

.form-input-error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Style pour les champs valides */
.form-input-valid {
    border-color: #10b981;
}

.form-input-valid:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Style pour les champs select */
select.form-input {
    padding-right: 2.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

/* Style pour les champs checkbox et radio */
.form-checkbox,
.form-radio {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
}

.form-radio {
    border-radius: 50%;
}

/* Style pour les groupes checkbox/radio */
.form-check-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-label {
    font-size: 0.875rem;
    color: #374151;
}

/* Style pour les messages de validation */
.form-validation-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-validation-message.error {
    color: #ef4444;
}

.form-validation-message.success {
    color: #10b981;
}

/* Style pour les icônes dans les champs */
.form-input-icon {
    position: relative;
}

.form-input-icon input {
    padding-left: 2.5rem;
}

.form-input-icon svg {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--background);
}

.register-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: bold;
}

.beta-notice {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
}

.login-link a:hover {
    color: var(--accent);
}

/* Ajout des styles pour la grille */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

/* Style pour les champs avec icônes */
.input-with-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.input-with-icon input {
    width: 100%;
    padding-right: 2.5rem !important;
    height: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-60%);
    width: 40px;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
    background: transparent;
    border: none;
    outline: none;
    z-index: 20;
    padding: 0;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Ajout d'un style spécifique pour l'icône à l'intérieur du bouton */
.toggle-password i {
    line-height: 1;
    font-size: 1.1rem;
}

/* Assurez-vous que le bouton ne perturbe pas l'input */
.toggle-password:focus {
    outline: none;
}

.toggle-password:active {
    background: transparent;
}

/* S'assurer que l'icône est au-dessus de l'input */
.toggle-password {
    pointer-events: auto;
}

.input-with-icon input {
    pointer-events: auto;
} 