﻿body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient( 180deg, #dbeafe 0%, #eef2ff 60%, #ffffff 80% );
    position: relative;
    overflow: hidden;
}

    /* Fondo decorativo */
    body::before,
    body::after {
        content: "";
        position: absolute;
        filter: blur(60px);
        z-index: 0;
        animation: float 12s ease-in-out infinite;
    }

    body::before {
        top: -100px;
        left: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(99,102,241,0.25) 0%, transparent 70%);
    }

    body::after {
        bottom: -120px;
        right: -120px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
    }

/* Layout */
.page {
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-top: 20px;
}

.logo-main {
    height: 80px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

    .logo-main:hover {
        transform: scale(1.05);
    }

/* Wrapper */
.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 10px;
}

/* Card */
.login-card {
    width: 420px;
    padding: 45px;
    border-radius: 16px;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .login-card form {
        width: 100%;
        max-width: 320px;
    }

    .login-card table {
        width: 100%;
    }

    /* Títulos */
    .login-card h2 {
        margin: 0;
        font-size: 26px;
        font-weight: 600;
    }

.subtitle {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 15px;
}

/* Inputs */
.input-group {
    position: relative;
    width: 100%;
    margin: 0 auto 18px auto;
    text-align: left;
}

    .input-group i {
        position: absolute;
        left: 12px;
        top: 16px;
        font-size: 16px;
    }

.input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
}

    .input:focus {
        border-color: #6366f1;
        outline: none;
    }

/* Botón */
.btn-login {
    width: 100%;
    padding: 16px;
    background: #4f46e5;
    border: none;
    color: white;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    display: block;
}

    .btn-login:hover {
        background: #4338ca;
    }

    .btn-login:active {
        transform: scale(0.98);
    }

/* Extras */
.extras {
    text-align: center;
    margin-top: 15px;
}

    .extras a {
        font-size: 13px;
        color: #4f46e5;
        text-decoration: none;
    }

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 15px;
}

    .footer a {
        color: #9ca3af;
        text-decoration: none;
        transition: 0.2s;
    }

        .footer a:hover {
            color: #4f46e5;
        }

/* Error */
.error {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

/* Animación */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(20px);
    }

    100% {
        transform: translateY(0px);
    }
}
