﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #0f1c30;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

    .background-overlay::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(16, 38, 73, 0.92) 0%, rgba(30, 60, 114, 0.85) 100%);
        z-index: 2;
    }

.login-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.brand-header {
    margin-bottom: 25px;
    color: white;
    text-align: center;
}

.company-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

    .company-logo i {
        font-size: 40px;
        color: #00a0df;
        filter: drop-shadow(0 0 10px rgba(0,160,223,0.3));
    }

.company-text h1 {
    font-size: 28px;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1;
}

.company-text span {
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-card {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
    /* Animación suave de entrada */
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    margin-bottom: 35px;
}

.app-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

    .app-logo i {
        font-size: 32px;
        color: #00a0df;
    }

    .app-logo h2 {
        color: #1a3b7a;
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

.app-title {
    color: #1a3b7a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    font-family: 'Roboto', sans-serif;
}

.highlight {
    border-bottom: 2px solid #00a0df;
    padding-bottom: 1px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

    .input-group input {
        width: 100%;
        padding: 14px 15px 14px 45px;
        border: 2px solid #f0f2f5;
        background-color: #f0f2f5;
        border-radius: 8px;
        font-size: 14px;
        color: #333;
        transition: all 0.3s ease;
        outline: none;
    }

        .input-group input:focus {
            background-color: white;
            border-color: #00a0df;
            box-shadow: 0 0 0 4px rgba(0, 160, 223, 0.1);
        }

.icon-wrapper {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8898aa;
    font-size: 14px;
    pointer-events: none;
}

.input-group input[type="password"],
.input-group input#passwordInput {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8898aa;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

    .toggle-password:hover {
        color: #00a0df;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #0f254a;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(15, 37, 74, 0.2);
}

    .btn-login:hover {
        background-color: #1a3b7a;
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(15, 37, 74, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-footer {
    margin-top: 40px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    text-align: center;
}
/*  */
/* ====== MENSAJE GENERAL (arriba) ====== */
/*#msgArea {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

    #msgArea.alert-danger {
        background: #ffe8ea;
        color: #8a0f1a;
        border: 1px solid #ffb3ba;
        border-left: 5px solid #dc3545;
    }

    #msgArea.alert-success {
        background: #e9fff2;
        color: #0b5d2a;
        border: 1px solid #b6f2cd;
        border-left: 5px solid #198754;
    }*/

    /* Ícono usando pseudo-elemento */
    /*#msgArea.alert-danger::before {
        content: "⚠️";
        font-size: 1.05rem;
    }

    #msgArea.alert-success::before {
        content: "✅";
        font-size: 1.05rem;
    }*/

/* ====== ERRORES POR CAMPO ====== */
/*.field-error {
    color: #dc3545;
    font-size: .85rem;
    margin-top: 6px;
    font-weight: 600;
}*/

/* Borde rojo del input cuando hay error */
/*.input-error {
    border: 1px solid rgba(220, 53, 69, .55) !important;
    box-shadow: 0 0 0 .2rem rgba(220,53,69,.12) !important;
}*/

/* Animación tipo "shake" */
/*.shake {
    animation: shake .25s ease-in-out 0s 2;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    50% {
        transform: translateX(4px);
    }

    75% {
        transform: translateX(-3px);
    }

    100% {
        transform: translateX(0);
    }
}*/