* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-image: url("/image/fotoGrupalLima.jpg");
    /* No repetir, centrar y escalar para cubrir TODO el viewport */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(24, 60, 108, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #80a3ee, #183c6c, #80a3ee);
}

.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f3f3f3, #ffffff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 15px 35px rgb(255, 255, 255);
    overflow: hidden;
}

.logo::after {
    content: none;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.company-name {
    font-size: 32px;
    font-weight: 700;
    color: #183c6c;
    margin-bottom: 8px;
}

.company-tagline {
    font-size: 14px;
    color: #777777;
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #183c6c;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #183c6c;
}

.form-control:focus {
    outline: none;
    border-color: #80a3ee;
    background: white;
    box-shadow: 0 0 0 4px rgba(128, 163, 238, 0.1);
}

.form-control::placeholder {
    color: #777777;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777777;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
    user-select: none;
}

.password-toggle:hover {
    color: #80a3ee;
}

.forgot-password {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-password a {
    color: #80a3ee;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #183c6c;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #80a3ee, #183c6c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(128, 163, 238, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.divider {
    text-align: center;
    margin: 35px 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #777777;
    font-size: 14px;
    font-weight: 500;
}

.footer-info {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.footer-info p {
    color: #777777;
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-info .experience {
    color: #80a3ee;
    font-weight: 600;
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-container {
        padding: 30px 25px;
        max-width: 100%;
    }

    .company-name {
        font-size: 28px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .form-control {
        padding: 14px 16px;
        font-size: 16px;
    }

    .login-btn {
        padding: 14px;
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 25px 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .company-name {
        font-size: 24px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container {
    animation: fadeInUp 0.7s ease-out;
}

.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.login-btn {
    animation-delay: 0.4s;
}

.form-control:focus {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.password-toggle::before {
    content: "👁";
    font-size: 16px;
}

.password-toggle.hide::before {
    content: "🙈";
    font-size: 16px;
}

.login-container:hover {
    box-shadow: 0 30px 60px rgba(24, 60, 108, 0.25);
}

.form-control:hover {
    border-color: #80a3ee;
}
