/* Estilos del Contenedor */
.custom-form-container {
    background-color: #fbfbfb;
    border: 5px solid #f2c17d;
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 520px;
    width: 90%;
    box-sizing: border-box;
    color: #333;
    margin: 0 auto;
    /* Centrado */
    position: relative;
    font-family: sans-serif;
}

.custom-logo {
    text-align: center;
    margin-bottom: 20px;
}

.custom-form-container label {
    display: block;
    margin-bottom: 5px;
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}

.custom-form-container input {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid #ccc;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Botón */
.custom-form-container button {
    background-color: #f7c471;
    color: white;
    font-size: 18px;
    padding: 10px 20px;
    margin-top: 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #e0a951;
    transition: 0.2s ease;
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-weight: bold;
}

.custom-form-container button:hover {
    background-color: #f4b64e;
}

.custom-form-container button:disabled {
    background-color: #ccc;
    box-shadow: none;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #f2c17d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Mensajes */
.form-error {
    color: #c71b1b;
    background: #ffecec;
    border: 1px solid #ffb3b3;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    text-align: center;
}

.signup-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #333;
}

.signup-text a,
.signup-text button {
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    background: none;
    border: 0;
    cursor: pointer;
}

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

/* MODAL */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 36, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}

.modal-card {
    background: #fff;
    color: #333;
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
    position: relative;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.modal-card .btn {
    width: 100%;
    background-color: #f7c471;
    color: white;
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 4px 4px 0px #e0a951;
    font-weight: bold;
    margin-top: 15px;
}

.modal-card input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .custom-form-container {
        padding: 20px;
    }

    .custom-form-container button {
        width: 60%;
    }
}