﻿/* Estilos para la página de login moderna y limpia */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

    body.login-body {
        /* Fondo degradado sutil para un toque moderno */
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 1rem;
    }

.login-container {
    width: 100%;
    max-width: 420px; /* Ligeramente más ancho para mejor legibilidad */
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente para profundidad */
    border-radius: 1rem; /* Bordes más redondeados */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: center;
    backdrop-filter: blur(10px); /* Efecto de desenfoque para modernidad */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-section {
    margin-bottom: 1.5rem;
}

.logo-imagen {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 250px; /* O el tamaño que prefieras */
    height: auto;
    margin-bottom: 1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937; /* Gris oscuro para contraste */
    margin: 0;
    letter-spacing: -0.025em;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-subtitle {
    color: #6b7280; /* Gris medio */
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Ajustes para los campos del formulario de Bootstrap */
.form-floating {
    position: relative;
}

    .form-floating > .form-control {
        height: calc(3.5rem + 2px);
        line-height: 1.25;
        border: 1px solid #e5e7eb; /* Borde gris claro */
        border-radius: 0.75rem; /* Bordes redondeados */
        padding: 1rem 3rem 1rem 0.75rem; /* Padding extra a la derecha para el botón de toggle */
        font-size: 0.95rem;
        transition: all 0.2s ease; /* Transición suave */
        background-color: #fafafa;
    }

        .form-floating > .form-control:focus {
            border-color: #3b82f6; /* Azul primario en foco */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background-color: #ffffff;
            transform: translateY(-1px); /* Efecto sutil de elevación */
        }

    .form-floating > label {
        padding: 1rem 0.75rem;
        color: #6b7280;
        font-weight: 500;
        transform-origin: 0 0;
        transition: all 0.2s ease;
    }

    .form-floating > .form-control:focus ~ label,
    .form-floating > .form-control:not(:placeholder-shown) ~ label {
        color: #3b82f6;
        font-size: 0.85rem;
        transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    }

/* Estilos para el contenedor de contraseña */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

    .toggle-password:hover {
        color: #3b82f6;
    }

    .toggle-password i {
        font-size: 1.1rem;
        transition: color 0.2s ease;
    }

.form-check {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-check-input {
    border-radius: 0.375rem; /* Bordes redondeados en el checkbox */
    border-color: #d1d5db;
    transition: all 0.2s ease;
}

    .form-check-input:checked {
        background-color: #3b82f6;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

.form-check-label {
    color: #374151;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
}

.btn-login {
    height: 3rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); /* Degradado azul moderno */
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
    margin-bottom: 2rem;
}

    .btn-login:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.4);
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.footer-text {
    margin-top: auto;
}

    .footer-text p {
        font-size: 0.8rem;
        color: #9ca3af;
        margin: 0;
        line-height: 1.4;
    }

/* Validaciones de error con estilo */
.text-danger {
    font-size: 0.8rem;
    color: #ef4444 !important;
    position: absolute;
    bottom: -1.25rem;
    left: 0.75rem;
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .login-container {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .toggle-password {
        right: 0.75rem;
        font-size: 1rem;
    }

        .toggle-password i {
            font-size: 1rem;
        }
}
