* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #023e8a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: #023e8a;
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.login-body {
    padding: 40px 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating > label {
    color: #6c757d;
    font-weight: 500;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #023e8a;
    box-shadow: 0 0 0 0.2rem rgba(2, 62, 138, 0.25);
}

.form-check {
    margin-bottom: 25px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.3rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #023e8a;
    border-color: #023e8a;
}

.form-check-label {
    margin-left: 8px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
}

.btn-login {
    background: #023e8a;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 62, 138, 0.4);
}

.btn-login:hover {
    background: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.6);
}

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

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #023e8a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #00b4d8;
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.form-floating {
    position: relative;
}

.form-floating .input-icon {
    z-index: 3;
}

/* Quitar el icono de error de Bootstrap */
.form-control.is-invalid {
    background-image: none;
    padding-right: 45px;
}

.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.developer-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    display: inline-block;
}

.vertex-tech {
    color: #023e8a;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vertex-tech:hover {
    color: #0077b6;
    text-decoration: underline;
}

.vertex-tech-icon {
    color: #023e8a;
    transition: color 0.3s ease;
    margin-right: 4px;
}

.developer-link:hover .vertex-tech-icon {
    color: #0077b6;
}

@media (max-width: 576px) {
    .login-container {
        border-radius: 15px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-header img {
        width: 100px;
        height: 100px;
    }

    .login-header h1 {
        font-size: 24px;
    }

    .login-body {
        padding: 30px 20px;
    }
}

