* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 64, 175, 0.88)),
        url("../img/fondo-login.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.12) 0, transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(59,130,246,0.22) 0, transparent 30%);
    z-index: 1;
}

.decoracion {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.35;
    z-index: 2;
}

.decoracion-1 {
    width: 220px;
    height: 220px;
    background: #38bdf8;
    top: -60px;
    left: -70px;
}

.decoracion-2 {
    width: 300px;
    height: 300px;
    background: #2563eb;
    right: -120px;
    bottom: -120px;
}

.decoracion-3 {
    width: 90px;
    height: 90px;
    background: #facc15;
    top: 18%;
    right: 15%;
}

.login-wrapper {
    width: 100%;
    max-width: 1080px;
    display: grid;
    grid-template-columns: 1.1fr 430px;
    gap: 45px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.login-info {
    color: #ffffff;
    padding: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge i {
    font-size: 18px;
    color: #93c5fd;
}

.login-info h1 {
    font-size: 46px;
    line-height: 1.1;
    margin-bottom: 18px;
    max-width: 620px;
}

.login-info p {
    font-size: 17px;
    line-height: 1.7;
    color: #dbeafe;
    max-width: 600px;
    margin-bottom: 28px;
}

.info-list {
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, 0.13);
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.info-item i {
    width: 38px;
    height: 38px;
    background: rgba(147, 197, 253, 0.2);
    color: #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
}

.info-item span {
    font-size: 15px;
    color: #f8fafc;
}

.login-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    padding: 35px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 28px;
}

.logo-icon {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, #1d4ed8, #38bdf8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.35);
}

.logo-box h2 {
    font-size: 28px;
    color: #0f172a;
    margin-bottom: 4px;
}

.logo-box p {
    font-size: 14px;
    color: #64748b;
}

.alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.alerta i {
    font-size: 20px;
}

.alerta-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alerta-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

.input-box {
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 0 14px;
    transition: 0.25s ease;
}

.input-box:focus-within {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.input-box i {
    font-size: 20px;
    color: #64748b;
}

.input-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #0f172a;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.btn-ver-password {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ver-password i {
    color: #64748b;
    transition: 0.2s ease;
}

.btn-ver-password:hover i {
    color: #1d4ed8;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.remember input {
    accent-color: #1d4ed8;
}

.system-text {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.btn-login {
    height: 54px;
    border: none;
    outline: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
    transition: 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
}

.btn-login i {
    font-size: 20px;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-footer p {
    color: #334155;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.login-footer small {
    color: #64748b;
    font-size: 12px;
}

@media screen and (max-width: 950px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .login-info {
        text-align: center;
        padding: 0;
    }

    .login-info h1 {
        font-size: 36px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .info-list {
        margin: auto;
    }
}

@media screen and (max-width: 520px) {
    .login-page {
        padding: 20px;
    }

    .login-info h1 {
        font-size: 30px;
    }

    .login-info p {
        font-size: 15px;
    }

    .login-card {
        padding: 25px;
        border-radius: 22px;
    }

    .logo-box {
        align-items: flex-start;
    }

    .logo-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .logo-box h2 {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
.network-alert {
    position: fixed;
    top: 22px;
    right: 22px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    padding: 14px 16px;
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 1000;
    max-width: 340px;
    animation: aparecerAlerta 0.3s ease;
}

.network-alert i {
    font-size: 22px;
}

.network-alert.activo {
    display: flex;
}

.loading-login {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(7px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.loading-login.activo {
    display: flex;
}

.loading-box {
    width: 100%;
    max-width: 360px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: subirLoading 0.3s ease;
}

.spinner {
    width: 58px;
    height: 58px;
    border: 5px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: girar 0.8s linear infinite;
}

.loading-box h3 {
    color: #0f172a;
    font-size: 22px;
    margin-bottom: 8px;
}

.loading-box p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.btn-login.cargando {
    opacity: 0.85;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes girar {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes subirLoading {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes aparecerAlerta {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 520px) {
    .network-alert {
        top: 15px;
        left: 15px;
        right: 15px;
        max-width: none;
    }
}