/* Style sobre et épuré pour la page d'inscription */

.signup-page {
    background: #ffffff;
    min-height: 100vh;
}

.signup-section {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.signup-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-content {
    background: white;
    border-radius: 8px;
    padding: 48px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
}

.signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signup-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.signup-description {
    font-size: 1rem;
    color: #4a5568;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-select {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
    color: #1a202c;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #1a202c;
    box-shadow: 0 0 0 3px rgba(26, 32, 44, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-error {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #1a202c;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.terms-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: white;
    margin-top: 2px;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #1a202c;
    border-color: #1a202c;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-text {
    font-size: 0.875rem;
    color: #4a5568;
    line-height: 1.5;
}

.terms-text a {
    color: #1a202c;
    text-decoration: none;
    font-weight: 500;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Signup Button */
.signup-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-btn.loading {
    color: transparent;
}

.signup-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Signup Footer */
.signup-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.signup-footer p {
    color: #4a5568;
    font-size: 0.95rem;
}

.link {
    color: #1a202c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.link:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Modales de succès / erreur pour l'inscription */
.success-modal,
.error-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.success-modal .modal-content,
.error-modal .modal-content {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.35);
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.success-modal .modal-header,
.error-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.success-modal .modal-header h3,
.error-modal .modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-modal .modal-header i,
.error-modal .modal-header i {
    color: #2563eb;
}

.error-modal .modal-header i {
    color: #dc2626;
}

.success-modal .close,
.error-modal .close {
    cursor: pointer;
    font-size: 1.25rem;
    color: #6b7280;
}

.success-modal .modal-body,
.error-modal .modal-body {
    padding: 20px;
    color: #374151;
    font-size: 0.95rem;
}

.success-modal .success-icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    margin: 0 auto 12px;
    font-size: 1.6rem;
}

.success-modal .email-info {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #4b5563;
}

.success-modal .modal-footer,
.error-modal .modal-footer {
    padding: 12px 20px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

.success-modal .btn,
.error-modal .btn {
    min-width: 90px;
}

/* Messages */
.message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.message i {
    margin-right: 8px;
    font-size: 1rem;
}

.success-message {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.success-message i {
    color: #48bb78;
}

.error-message {
    background-color: #fff5f5;
    color: #742a2a;
    border: 1px solid #fc8181;
}

.error-message i {
    color: #e53e3e;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-content {
        padding: 32px 24px;
    }
    
    .signup-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .signup-content {
        padding: 24px 20px;
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
    
    .form-input,
    .form-select {
        padding: 10px 14px;
    }
}
