﻿:root {
    --primary-color: #0056b3; /* Azul más intenso */
    --secondary-color: #003d7a; /* Azul oscuro */
    --accent-color: #ffc107; /* Amarillo */
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
    height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 56, 122, 0.8);
        z-index: 0;
    }

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in-out;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    background-color: white;
}

.login-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 25px;
    text-align: center;
    border-bottom: 4px solid var(--accent-color);
}

    .login-header img {
        max-width: 180px;
        margin-bottom: 15px;
    }

    .login-header h3 {
        margin: 0;
        font-weight: 600;
    }

.login-body {
    padding: 30px;
}

.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    height: 48px; /* Altura fija para consistencia */
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25);
    }

/* CORRECCIÓN PARA LOS INPUT GROUPS */
.input-group {
    margin-bottom: 15px; /* Espaciado consistente */
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    padding: 0 15px;
    height: 48px; /* Misma altura que los inputs */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* Ancho fijo para consistencia */
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    height: 48px; /* Altura consistente */
}

    .input-group .form-control:focus {
        box-shadow: none;
        border-color: #e0e0e0; /* Mantener borde consistente */
    }

        .input-group .form-control:focus + .input-group-text {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

/* CORRECCIÓN ESPECÍFICA PARA EL BOTÓN DE VER CONTRASEÑA */
.toggle-password {
    height: 48px !important; /* Misma altura que el input */
    width: 50px; /* Ancho consistente con el otro icono */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0 !important;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s;
}

    .toggle-password:hover {
        background-color: #e9ecef;
        color: var(--primary-color);
    }

/* Efecto cuando el input está enfocado */
.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f0f7ff;
}

.input-group:focus-within .form-control {
    border-color: var(--primary-color);
}

.input-group:focus-within .toggle-password {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
    color: var(--primary-color);
}

.btn-login {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    width: 100%;
    transition: all 0.3s;
    height: 48px; /* Altura consistente con los inputs */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-login:hover {
        background-color: var(--secondary-color);
    }

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

    .form-footer a {
        color: var(--primary-color);
        text-decoration: none;
        transition: all 0.3s;
    }

        .form-footer a:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

    .language-selector .dropdown-toggle {
        background-color: rgba(255, 255, 255, 0.2);
        border: none;
        color: white;
        border-radius: 20px;
        padding: 5px 15px;
    }

    .language-selector .dropdown-menu {
        min-width: auto;
    }

@media (max-width: 576px) {
    .login-container {
        padding: 0 20px;
    }

    .login-card {
        border-radius: 10px;
    }

    .input-group-text,
    .input-group .form-control,
    .toggle-password,
    .btn-login {
        height: 44px; /* Ligera reducción en móviles */
    }

    .input-group-text,
    .toggle-password {
        width: 45px; /* Ajuste para móviles */
    }
}
