@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --navy: #3F384C;
    --gold: #d4a574;
    --cream: #faf8f5;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f1f3f5;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Container principal */
.signup-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--cream);
    overflow-y: auto;
}

/* Card principale */
.signup-container {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
    margin: 1rem 0;
}

/* Barre décorative */
.signup-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy) 100%);
}

/* Header */
.signup-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.logo-link {
    display: inline-block;
}

.brand-logo {
    display: block;
    max-width: 130px;
    height: auto;
    margin: 0 auto 1.25rem;
    transition: transform 0.3s;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.signup-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.875rem;
    color: var(--navy);
    margin-bottom: 0.375rem;
    font-weight: 400;
}

.signup-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Form section */
.signup-form-section {
    padding: 1rem 2rem 2rem;
}

/* Form row - 2 colonnes */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group-half {
    margin-bottom: 0 !important;
}

/* Champ de formulaire */
.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.form-field label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem !important;
    font-size: 0.9375rem !important;
    color: var(--navy) !important;
    background: var(--gray-50) !important;
    border: 2px solid transparent !important;
    border-radius: 12px !important;
    transition: all 0.2s !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.form-input::placeholder {
    color: var(--gray-400) !important;
}

.form-input:focus {
    background: var(--white) !important;
    border-color: var(--gold) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1) !important;
}

/* Newsletter checkbox */
.newsletter-checkbox {
    margin-bottom: 1.5rem;
}

.checkbox-input {
    display: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-box {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--gold);
    border-radius: 4px;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-input:checked + .checkbox-label .checkbox-box {
    background: var(--gold);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy) 0%, #4a4156 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(63, 56, 76, 0.25);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 56, 76, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Footer links */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.form-footer p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.login-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.login-link:hover {
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 0.75rem;
}

.back-link a {
    font-size: 0.8125rem;
    color: var(--gray-400);
    text-decoration: none;
}

.back-link a:hover {
    color: var(--navy);
}

/* Page footer */
.page-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.page-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.page-footer a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

/* Error */
.text-red-500,
.text-red-600 {
    color: #ef4444 !important;
    font-size: 0.8125rem !important;
    margin-top: 0.375rem !important;
    display: block !important;
}

/* Captcha */
.captcha-wrapper {
    margin-bottom: 1.25rem;
}

/* Loading */
.btn-submit.loading {
    pointer-events: none;
    color: transparent;
    position: relative;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animation */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

.signup-container {
    animation: fadeUp 0.5s ease-out;
}

/* Responsive - Petits écrans */
@media (max-height: 750px) {
    .signup-header {
        padding: 1.5rem 2rem 0.75rem;
    }
    
    .brand-logo {
        max-width: 110px;
        margin-bottom: 1rem;
    }
    
    .signup-title {
        font-size: 1.625rem;
        margin-bottom: 0.25rem;
    }
    
    .signup-subtitle {
        font-size: 0.875rem;
    }
    
    .signup-form-section {
        padding: 0.875rem 2rem 1.5rem;
    }
    
    .form-field {
        margin-bottom: 1rem;
    }
    
    .form-row {
        margin-bottom: 1rem;
    }
}

@media (max-width: 640px) {
    .signup-page-wrapper {
        padding: 0.75rem;
    }
    
    .signup-header,
    .signup-form-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group-half {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 380px) {
    .brand-logo {
        max-width: 100px;
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .btn-submit {
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
}

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .signup-page-wrapper {
        padding: 0.5rem;
    }
    
    .signup-container {
        margin: 0.5rem 0;
    }
    
    .signup-header {
        padding: 1rem 2rem 0.5rem;
    }
    
    .brand-logo {
        max-width: 90px;
        margin-bottom: 0.75rem;
    }
    
    .signup-title {
        font-size: 1.375rem;
    }
    
    .signup-form-section {
        padding: 0.75rem 2rem 1rem;
    }
    
    .form-field,
    .form-row {
        margin-bottom: 0.875rem;
    }
}