﻿:root {
    --primary: #00acfc;
    --primary-hover: #184a7e;
    --text: white;
    /* --text-lighter: #71707d; */
    --text-lighter: white;
    --text-sign: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Mulish, sans-serif;
}

body {
    font-size: 16px;
    font-family: 'Work Sans', sans-serif;
    padding: 1rem;
    display: flex;
    height: 100vh;
    color: var(--text);
    justify-content: center;
    align-items: center;
    background-image: url('../img/Wave.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% 50%;
    animation: move 18s alternate infinite linear;
}

h1 {
    color: var(--text);
}

/*.background {
    content: "";
    position: absolute;
    height: 100vh;
    width: 100vw;
    display: grid;
    place-items: center;
    background-image: url('../img/Wave.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 60% 50%;
    animation: move 18s alternate infinite linear;
}*/

@keyframes move {
    100% {
        background-position: 0% 50%;
    }
}

.socials-row {
    display: flex;
    gap: 1rem;
    margin: 1rem 0px;
}

    .socials-row img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .socials-row > a {
        background-color: var(--secondary);
        border-radius: 0.5rem;
        width: 100%;
        min-height: 3rem;
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        text-decoration: none;
        font-size: 1.2rem;
        color: var(--text);
        border: 1px solid var(--text-lighter);
        font-weight: 700;
    }

        .socials-row > a:hover {
            background-color: var(--secondary-hover);
            border: 1px solid var(--primary);
        }

.divider {
    display: flex;
    flex-direction: row;
    color: var(--text-lighter);
    gap: 1rem;
    align-items: center;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: #00acfc;
    /* opacity: .2; */
}

.centering {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.my-form {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 1rem;
    /* background-color: white; */
    background: #1815249c;
    border-radius: 1rem;
    box-shadow: 0 20px 60px var(--aura);
    min-width: 17.5rem;
    max-width: 31.25rem;
    width: 100%;
    padding: 2rem;
}

.signup-welcome {
    height: 5rem;
    width: 5rem;
    object-fit: cover;
}

.signup-welcome-row {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 0.5rem;
}

.my-form__button {
    background-color: var(--primary);
    color: white;
    white-space: nowrap;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
/*    margin-top: 1rem;*/
    line-height: 3.125rem;
    outline: none;
    font-size: 1.125rem;
    letter-spacing: .025em;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    min-height: 3.125rem;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
}

.text-field-input {
    color: var(--text-lighter);
    font-size: 1rem;
    font-weight: 500;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--text-lighter);
    height: 3.125rem;
    color: var(--text);
    letter-spacing: .03rem;
    background-color: transparent;
    outline: none;
    transition: .25s;
    border-radius: 0.5rem;
    text-indent: 1.25rem;
    margin-top: 0.5rem;
}

.text-field-input-select {
    font-size: 1rem;
    font-weight: 500;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--text-lighter);
    height: 3.125rem;
    color: #00acfc;
    letter-spacing: 0.03rem;
    background-color: #ffffff;
    outline: none;
    transition: .25s;
    border-radius: 0.5rem;
    text-indent: 1.25rem;
    margin-top: 0.5rem;
}

/*--- Boton Inicio ---*/

.my-form__inicio {
    background-color: var(--primary);
    color: white;
    white-space: nowrap;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.2rem;
    line-height: 3.125rem;
    outline: none;
    font-size: 1.125rem;
    letter-spacing: .025em;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    min-height: 3.125rem;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
}

    .my-form__inicio:hover {
        background-color: var(--primary-hover);
    }

/*-------*/

/*--- Boton Cancelar ---*/

.my-form__cancel {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

/*------*/

.text-field-input:focus {
    border: 1px solid var(--primary);
}

.my-form__button:hover {
    background-color: var(--primary-hover);
}

.text-field {
    position: relative;
}

    .text-field-input::-webkit-input-placeholder {
        color: var(--text-lighter);
    }

    .text-field svg {
        position: absolute;
        right: -0.125rem;
        bottom: -0.25rem;
        width: 1.875rem;
        height: 1.875rem;
        transform: translate(-50%,-50%);
        transform-origin: center;
        stroke: var(--text);
    }

    .text-field-input:focus + svg {
        stroke: var(--primary);
    }

    .text-field label {
        color: var(--text);
        font-size: 0.875rem;
        font-weight: 600;
        letter-spacing: .03rem;
        z-index: 10;
    }

        .text-field label:has(+ input:focus) {
            color: var(--primary);
        }

.input-icon {
    position: absolute;
    bottom: 0;
    top: 55%;
    right: 0.5rem;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.my-form__actions {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    margin-top: 0.9rem;
}

.my-form__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.my-form__actions a {
    color: var(--secondary);
    font-weight: 600;
}

    .my-form__actions a:hover {
        text-decoration: underline;
    }

.my-form__row {
    display: flex;
    justify-content: space-between;
}

.my-form__signin {
    display: flex;
    justify-content: center;
}

    .my-form__signin a {
        color: var(--text-sign);
        font-weight: 800;
        text-decoration: none;
        font-size: 1.125rem;
    }

        .my-form__signin a:hover {
            background: linear-gradient(90deg, #00acfc, #00acfc, white, white); /* Degradado de izquierda a derecha */
            background-size: 200% auto; /* Tamaño del degradado */
            -webkit-background-clip: text; /* Aplica el degradado solo al texto */
            -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el degradado */
            animation: gradientHover 3.8s linear infinite; /* Animación más lenta (5 segundos) */
        }

.form-olvido {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: .03rem;
    text-decoration: none;
    transition: color 0.5s ease; /* Transición suave para el color */
    z-index: 10;
}

    /* Efecto hover con degradado infinito */
    .form-olvido:hover {
        background: linear-gradient(90deg, #00acfc, #00acfc, white, white, #00acfc); /* Degradado de izquierda a derecha */
        background-size: 200% auto; /* Tamaño del degradado */
        -webkit-background-clip: text; /* Aplica el degradado solo al texto */
        -webkit-text-fill-color: transparent; /* Hace el texto transparente para mostrar el degradado */
        animation: gradientHover 5s linear infinite; /* Animación más lenta (5 segundos) */
    }

/* Animación para el degradado (de derecha a izquierda) */
@keyframes gradientHover {
    0% {
        background-position: 100% 50%; /* Inicia el degradado a la derecha */
    }

    50% {
        background-position: 0% 50%; /* Mueve el degradado a la izquierda */
    }

    100% {
        background-position: 100% 50%; /* Regresa el degradado a la derecha */
    }
}

/*----- Estilos Google -----*/

/* --- Contenedor del Botón Google y Ayuda --- */
.google-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* Separación exacta de 10px */
    width: 100%;
}

/* --- Wrapper del Botón Google --- */
.google-btn-wrapper {
    flex-grow: 1; /* Toma todo el espacio sobrante disponible */
    width: 100%;
    display: flex;
}

    .google-btn-wrapper .g_id_signin {
        width: 100%; /* Le indica al script de Google que llene el wrapper */
    }

/* --- Botón de Ayuda con Estilo Google Nativo --- */
.btn-google-help {
    background-color: #ffffff; /* Fondo blanco exacto de Google */
    border: 1px solid #dadce0; /* Borde gris nativo de Google */
    color: #3c4043; /* Color del icono gris oscuro de Google */
    border-radius: 4px; /* Radio de los botones de Google */
    width: 40px; /* Ancho fijo */
    height: 40px; /* Alto fijo equivalente al size="large" de Google */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
    flex-shrink: 0; /* ATENCIÓN: Evita que el botón se aplaste en celulares */
}

    .btn-google-help:hover {
        background-color: #f8f9fa; /* Color de hover de Google */
        border-color: #dadce0;
        color: #202124;
    }

/* --- Rediseño de la sección de registro --- */
.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.signup-text {
    color: var(--text-lighter);
}

.signup-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .signup-link:hover {
        color: white;
        text-decoration: underline;
    }

/*  borde del SweetAlert */
.borde-redondeado {
    border-radius: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Interacción del Icono de Contraseña --- */
.toggle-password-icon {
    cursor: pointer;
    pointer-events: auto;
    transition: stroke 0.3s ease, transform 0.2s ease;
}

    /* Efecto hover ligero para el ojo */
    .toggle-password-icon:hover {
        stroke: var(--primary);
        transform: translate(-50%, -50%) scale(1.1);
    }

/* --- Botón de Regresar en la esquina --- */
.btn-back-corner {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #000000;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 700;
    transition: all 0.3s ease;
    z-index: 10;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px;
}

    .btn-back-corner svg {
        transition: transform 0.3s ease;
    }

    /* Efecto Hover */
    .btn-back-corner:hover {
        color: var(--primary); /* Se ilumina con el color primario */
    }

        /* Animación sutil de la flecha al hacer hover */
        .btn-back-corner:hover svg {
            transform: translateX(-4px); /* La flecha se mueve un poco */
        }

/* Estilos de cedula */

.hidden-input {
    display: none
}

.drop-zone {
    border: 2px dashed #cbd5e1;
    background: #fff;
    padding: 35px;
    text-align: center;
    color: #475569;
    cursor: pointer;
    border-radius: 16px;
    transition: .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.06)
}

    .drop-zone:hover {
        transform: translateY(-2px);
        border-color: #2563eb
    }

    .drop-zone.dragover {
        background: #eff6ff;
        border-color: #2563eb;
        box-shadow: 0 0 0 4px rgba(37,99,235,.12)
    }

    .drop-zone .icon {
        font-size: 42px;
        margin-bottom: 10px
    }

    .drop-zone small {
        display: block;
        margin-top: 8px;
        color: #64748b
    }

.preview-card {
    display: none;
    max-width: 380px;
    margin: 20px auto;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg,#0f172a,#1e293b);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,.18)
}

    .preview-card h5 {
        margin: 0 0 10px 0
    }

.preview-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,.15)
}

.progress-wrap {
    display: none;
    max-width: 380px;
    margin: 15px auto
}

.progress {
    height: 18px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,#2563eb,#38bdf8);
    transition: width .25s
}

.actions {
    text-align: center;
    margin-top: 12px
}

.loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.75);
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.loader-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e5e7eb;
    border-top: 6px solid #2563eb;
    border-radius: 50%;
    animation: girar 1s linear infinite;
    margin: auto;
}

.loader-text {
    margin-top: 12px;
    font-weight: 600;
    color: #1e293b;
}

@keyframes girar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--- Botones ---*/

.btn {
    background: #F44336;
    padding: 8px;
    border-radius: 0.5rem;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

    .btn:hover {
        background: #c32d22;
    }

/*----- ¡Responsive Time! -----*/

@media (max-width: 480px) {

    .my-form {
        width: 95%;
        padding: 1.5rem;
    }

    .btn-back-corner {
        top: 1rem;
        right: 1rem;
    }
}