/* Created by ElEwdin on 2025-04-14 13:13:26 UTC */

/* Reset y estilos base */
body {
    margin: 0;
    font-family: "Rowdies", sans-serif;
    background-color: #fff;
    overflow-y: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Imagen de cuenta */
.account-image {
    text-align: center;
    margin-bottom: 20px;
}

.account-image img {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

/* BANNER Y CONTENEDOR DEL FORMULARIO */
.main-content {
    flex: 1;
}

.banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.pre-registro-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    color: #000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    margin-top: 50px;
}

.pre-registro-container h2 {
    margin-top: 0;
    text-align: center;
    font-size: 2em;
    color: #000;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #000;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
}

.help-text {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    line-height: 1.4;
}

.pre-registro-container button {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #2ca16d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: inset 0 0 8px rgb(21, 72, 37);
    position: relative;
    overflow: hidden;
    transition: background-color 1.5s ease, box-shadow 1.5s ease;
}

.pre-registro-container button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
}

.pre-registro-container button:hover {
    background-color: #ffd700;
    box-shadow: inset 0 0 8px rgb(134, 98, 10);
}

.pre-registro-container button:hover::after {
    animation: shine 1.5s;
}

/* Register link */
.register-link {
    text-align: center;
    margin: 15px 0;
}

.register-link a {
    color: #2ca16d;
    text-decoration: none;
    transition: color .3s ease-in-out;
}

.register-link a:hover {
    color: #ffd700;
}

/* Estilos para el botón loading */
button.loading {
    position: relative;
    cursor: wait;
    color: transparent !important;
}

button.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-right-color: #fff;
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

/* Animaciones */
@keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Media queries */
@media only screen and (max-width: 768px) {
    .pre-registro-container {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
        background-color: transparent;
        box-shadow: none;
    }

    .pre-registro-container h2 {
        font-size: 1.8em;
    }

    .form-group label {
        font-size: 1em;
    }

    .form-group input {
        font-size: 1em;
        padding: 10px;
    }

    .pre-registro-container button {
        font-size: 1.1em;
        padding: 12px;
    }

    .account-image img {
        width: 100px;
    }

    .help-text {
        font-size: 0.85em;
        padding: 8px;
    }
}