@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
    --primary-color: #42200b;
    --secondary-color: #ffc135;
    --tertiary-color: #df1c1c;
    --text-dark: #212529;
    --white: #ffffff;
    --background-color: #f8f9fa;
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    /* background-image: url('../assets/background.svg'); */
    background-size: cover;
    background-position: center;
}

.auth-container {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(5px);
}

.auth-container h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

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

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

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    margin-top: 10px; /* Ajustement pour centrer avec le label */
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 193, 53, 0.25);
}

.btn-submit {
    width: 100%;
    background-color: var(--tertiary-color);
    color: var(--white);
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-submit:hover {
    background-color: #c81919;
}

.error-message {
    color: var(--tertiary-color);
    background-color: rgba(223, 28, 28, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none; /* Caché par défaut */
}

.auth-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

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

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

.optional {
    color: #888;
    font-weight: 400;
}
.file-upload-wrapper {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--secondary-color);
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
}