/* ============================================================
   Formulaires Auth — Enfin Lire
   ============================================================ */

.el-auth-wrap {
    font-family: 'Quicksand', sans-serif;
    width: 100%;
}

/* Ligne double (Prénom + Nom) */
.el-field-row {
    display: flex;
    gap: 14px;
}
.el-field-row .el-field {
    flex: 1;
    min-width: 0;
}

/* Champ */
.el-field {
    margin-bottom: 20px;
}

/* Input sans icône gauche */
.el-input--no-icon {
    padding-left: 16px !important;
}

.el-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.el-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.el-lost-link {
    font-size: 14px;
    font-weight: 600;
    color: #FDC71C;
    text-decoration: none;
    white-space: nowrap;
}
.el-lost-link:hover {
    text-decoration: underline;
}

/* Input wrapper */
.el-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.el-input-icon {
    position: absolute;
    left: 16px;
    color: #737B8C;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.el-input {
    width: 100% !important;
    padding: 14px 48px !important;
    border: 1.5px solid #e5e5e5 !important;
    border-radius: 15px !important;
    background: #FAF9F5;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-sizing: border-box !important;
}

.el-input::placeholder {
    color: #737B8C;
    font-weight: 500;
}

.el-input:focus {
    border-color: #FDC71C;
    box-shadow: 0 0 0 3px rgba(253, 199, 28, 0.15);
    background: #fff;
}

/* Bouton œil */
.el-eye-btn {
    position: absolute;
    right: 16px;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer !important;
    color: #aaa !important;
    display: flex !important;
    align-items: center;
    line-height: 1;
}
.el-eye-btn:hover {
    color: #555 !important;
}

/* Message d'erreur */
.el-error {
    font-size: 13px;
    font-weight: 600;
    color: #e03b3b;
    margin-bottom: 16px;
    min-height: 0;
    transition: min-height 0.2s;
}
.el-error:not(:empty) {
    min-height: 20px;
}

/* Bouton soumettre */
.el-submit {
    width: 100% !important;
    padding: 15px !important;
    background: #FDC71C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 15px !important;
    font-family: 'Quicksand', sans-serif;
    font-size: 17px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.15s, transform 0.1s !important;
    letter-spacing: 0.01em;
}
.el-submit:hover {
    background-color: #f0b800 !important;
    transform: translateY(-1px);
}
.el-submit:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* Message succès */
.el-success {
    font-size: 14px;
    font-weight: 600;
    color: #2f9140;
    background: #edf7ee;
    border-radius: 10px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.el-success:not(:empty) {
    padding: 12px 16px;
}

/* Checkbox CGU */
.el-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 20px;
    user-select: none;
}

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

.el-checkbox-mark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
    margin-top: 1px;
}

.el-checkbox input:checked + .el-checkbox-mark {
    border-color: #FDC71C;
    background: #FDC71C;
}

.el-checkbox input:checked + .el-checkbox-mark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.el-checkbox-text {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}

.el-link {
    color: #FDC71C;
    font-weight: 600;
    text-decoration: none;
}
.el-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .el-field-row {
        flex-direction: column;
        gap: 0;
    }
    .el-input {
        font-size: 14px;
        padding: 13px 44px !important;
    }
    .el-input--no-icon {
        padding-left: 16px !important;
    }
    .el-submit {
        font-size: 16px;
    }
}
