@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.contenedor-login {
    display: flex;
    height: 100vh;
    width: 100vw;
    /* Login izquierda, animación derecha */
}

.tarjeta-login {
    width: 50vw;
    /* Ocupa la mitad del ancho de la pantalla */
    max-width: 700px;
    /* Opcional, para limitar tamaño máximo */
    margin: 0 auto;
    /* Centrar horizontalmente */
}

.columna-formulario {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    order: 1;
    /* Formulario primero (izquierda) */
}

.columna-imagen {
    flex: 1;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    /* AZUL en lugar de morado */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    order: 2;
    /* Animación segunda (derecha) */
}

.columna-imagen::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.caja-formulario {
    width: 100%;
    max-width: 400px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contenido-interno {
    width: 100%;
}

.cabecera-formulario {
    width: 100%;
}

.titulo {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-imagen {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    /* AZUL */
    padding: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.titulo h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    /* AZUL */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.titulo h2::before {
    content: 'HelpDesk';
    display: block;
}

.titulo p {
    font-size: 16px;
    color: #6b7280;
    font-weight: 400;
}

.grupo-formulario {
    position: relative;
    margin-bottom: 25px;
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.grupo-formulario:nth-child(1) {
    animation-delay: 0.4s;
}

.grupo-formulario:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icono-control-formulario {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 20px;
    z-index: 2;
    transition: all 0.3s ease;
}

.control-formulario {
    width: 100%;
    height: 60px;
    padding: 0 20px 0 55px;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 16px;
    background: #f9fafb;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.control-formulario:focus {
    border-color: #2563eb;
    /* AZUL */
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
    /* ANIMACIÓN LEVANTAR */
}

.control-formulario:focus+.icono-control-formulario {
    color: #2563eb;
    /* AZUL */
    transform: translateY(-50%) scale(1.1);
}

.control-formulario::placeholder {
    color: #9ca3af;
    font-weight: 400;
    transition: all 0.3s ease;
}

.control-formulario:focus::placeholder {
    transform: translateY(-2px);
    opacity: 0.7;
}

/* Etiquetas flotantes */
.grupo-formulario.tiene-retroalimentacion .control-formulario:focus::placeholder,
.grupo-formulario.tiene-retroalimentacion .control-formulario:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.acciones {
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.boton {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.boton-enviar {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    /* AZUL */
    color: white;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.boton-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.boton-enviar:hover::before {
    left: 100%;
}

.boton-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.boton-enviar:active {
    transform: translateY(-1px);
}

.informacion-acceso {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border-left: 4px solid #2563eb;
    /* AZUL */
    text-align: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.informacion-acceso p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #64748b;
}

.informacion-acceso strong {
    color: #1e293b;
}

/* Efectos adicionales */
.onda {
    display: none;
}

.boton-volver {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #1e293b;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.boton-volver:hover {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    color: #111827;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.boton-volver:active {
    transform: translateY(-1px);
}

/* Responsivo: pantallas hasta 768px */
@media (max-width: 768px) {

    .contenedor-login {
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    .tarjeta-login {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0px;
        width: 80%;
    }

    .login-card {
        display: flex;
        flex-direction: column;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        max-width: 480px;
        width: 100%;
        z-index: 1;
    }

    .columna-formulario {
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 25px;
        width: 100%;
        max-width: 420px;
    }

    .columna-imagen {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .columna-imagen {
        order: 1;
    }

    .columna-formulario {
        order: 2;
    }

    .titulo h2 {
        font-size: 28px;
    }

    .titulo p {
        font-size: 14px;
    }

    .control-formulario {
        height: 50px;
        font-size: 14px;
    }

    .boton-enviar {
        height: 50px;
        font-size: 15px;
    }
}

/* Responsivo: pantallas muy pequeñas, hasta 480px */
@media (max-width: 480px) {
    .columna-formulario {
        padding: 20px;
    }

    .columna-imagen {
        flex: 0 0 30%;
        padding: 16px;
    }

    .titulo {
        margin-bottom: 25px;
    }

    .logo-imagen {
        width: 65px;
        height: 65px;
        padding: 12px;
    }

    .titulo h2 {
        font-size: 26px;
    }

    .titulo p {
        font-size: 14px;
    }

    .control-formulario {
        height: 52px;
        font-size: 15px;
        padding: 0 15px 0 45px;
    }

    .icono-control-formulario {
        left: 14px;
        font-size: 18px;
    }

    .boton-enviar {
        height: 52px;
        font-size: 16px;
    }

    .informacion-acceso {
        font-size: 13px;
        padding: 12px;
    }
}