:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --error-color: #ff4444;
    --success-color: #4CAF50;
    --background-color: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
}

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 2rem;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

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

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.siret-section {
    display: none;
    margin-bottom: 1.5rem;
}

.siret-section.active {
    display: block;
}

.siret-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.siret-search input {
    flex: 1;
}

button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #333333;
}

button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
}

.search-button {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button.loading {
    position: relative;
    color: transparent;
}

.search-button.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Gestion de la visibilité des sections */
.hidden {
    display: none;
}

/* Feedback styles */
.feedback {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: none;
}

.feedback.error {
    color: #dc2626;
    display: block;
}

.feedback.success {
    color: #059669;
    display: block;
}

.company-info,
.account-info,
.terms-section {
    display: none;
    margin-bottom: 1.5rem;
}

.company-info.active,
.account-info.active,
.terms-section.active {
    display: block;
}

.terms-section {
    font-size: 0.875rem;
    color: var(--text-color);
}

.terms-section a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-color);
}

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

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

/* Responsive Design */
@media (max-width: 600px) {
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .siret-search {
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-button {
        width: 100%;
    }
}

/* Checkbox personnalisée */
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-color);
}

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

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

/* Champs en lecture seule */
input[readonly] {
    background-color: #f8f8f8;
    cursor: not-allowed;
} 