body.pantalla-login {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 20px;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(165deg,
            var(--tema, #94143c) 0%,
            var(--tema, #94143c) 48%,
            #f5f5f5 48.2%,
            #f5f5f5 100%);
}

.burbujas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.burbujas span {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: flotar 14s infinite ease-in-out;
}

.burbujas span:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 10%;
    animation-delay: 0s;
}

.burbujas span:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 78%;
    animation-delay: 2s;
    background: rgba(255, 255, 255, 0.12);
}

.burbujas span:nth-child(3) {
    width: 180px;
    height: 180px;
    top: 55%;
    left: 5%;
    animation-delay: 4s;
}

.burbujas span:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 85%;
    animation-delay: 6s;
    background: rgba(0, 0, 0, 0.04);
}

.burbujas span:nth-child(5) {
    width: 40px;
    height: 40px;
    top: 35%;
    left: 45%;
    animation-delay: 3s;
    background: rgba(255, 255, 255, 0.15);
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.08);
    }
}

.tarjeta-login {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 16px 40px 36px;
    box-shadow:
        0 30px 70px -20px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    animation: subir 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes subir {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tarjeta-header {
    text-align: center;
    margin-bottom: 22px;
}

.marca {
    width: 180px;
    height: 180px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marca img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.75);
    transform-origin: center center;
    filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.22));
}

.tarjeta-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.tarjeta-header p {
    font-size: 13.5px;
    color: #8a8a8a;
    font-weight: 400;
    margin: 0;
}

.alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    background: color-mix(in srgb, var(--tema, #94143c) 8%, transparent);
    color: var(--tema, #94143c);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
    border-left: 3px solid var(--tema, #94143c);
}

.alerta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.campo {
    position: relative;
    margin-bottom: 26px;
}

.campo label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #8a8a8a;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.campo input {
    width: 100%;
    padding: 10px 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid #e6e6e6 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
}

.campo input::placeholder {
    color: #c2c2c2;
    font-weight: 400;
}

.campo input:focus,
.campo input:focus-visible,
.campo input:active {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.campo .linea {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--tema, #94143c);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.campo input:focus~.linea {
    transform: scaleX(1);
}

.campo input:focus~.linea {
    transform: scaleX(1);
}

.campo-pass {
    position: relative;
}

.campo-pass input {
    padding-right: 32px !important;
}

.toggle-pass {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #b8b8b8;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    z-index: 2;
}

.toggle-pass:hover {
    color: var(--tema, #94143c);
}

.toggle-pass svg {
    width: 19px;
    height: 19px;
}

.btn-entrar-main {
    width: 100%;
    padding: 15px 22px;
    margin-top: 6px;
    background: var(--tema, #94143c) !important;
    background-color: var(--tema, #94143c) !important;
    border: none !important;
    color: #fff !important;

    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 24px -8px color-mix(in srgb, var(--tema, #94143c) 55%, transparent);
}

.btn-entrar-main:hover,
.btn-entrar-main:focus,
.btn-entrar-main:focus-visible,
.btn-entrar-main:active {
    background: var(--tema, #94143c) !important;
    background-color: var(--tema, #94143c) !important;
    border: none !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -10px color-mix(in srgb, var(--tema, #94143c) 65%, transparent);
    filter: brightness(1.06);
    outline: none !important;
}

.btn-entrar-main svg,
.btn-entrar-main i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-entrar-main:hover svg,
.btn-entrar-main:hover i {
    transform: translateX(4px);
}

.btn-entrar-main:active {
    transform: translateY(0);
}

.roles-info {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px dashed #e6e6e6;
    text-align: center;
}

.roles-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a0a0a0;
    font-weight: 600;
    margin-bottom: 12px;
}

.roles-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.chip {
    display: inline-block;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tema, #94143c);
    background: color-mix(in srgb, var(--tema, #94143c) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--tema, #94143c) 22%, transparent);
    border-radius: 100px;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
}

.chip:hover {
    background: var(--tema, #94143c);
    color: #fff;
    transform: translateY(-1px);
}

.volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    width: 100%;
    justify-content: center;
    color: #999;
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.volver svg {
    width: 14px;
    height: 14px;
}

.volver:hover {
    color: var(--tema, #94143c);
    transform: translateX(-3px);
}

@media (max-width: 520px) {
    body.pantalla-login {
        padding: 24px 16px;
    }

    .tarjeta-login {
        padding: 14px 26px 30px;
        border-radius: 20px;
    }

    .tarjeta-header {
        margin-bottom: 18px;
    }

    .marca {
        width: 140px;
        height: 140px;
        margin-bottom: 2px;
    }

    .marca img {
        transform: scale(1.65);
    }

    .tarjeta-header h1 {
        font-size: 20px;
    }

    .tarjeta-header p {
        font-size: 12.5px;
    }

    .campo {
        margin-bottom: 22px;
    }

    .btn-entrar-main {
        padding: 14px 18px;
        font-size: 14px;
    }

    .roles-info {
        margin-top: 24px;
        padding-top: 18px;
    }
}

@media (max-width: 380px) {
    .tarjeta-login {
        padding: 12px 20px 26px;
    }

    .tarjeta-header {
        margin-bottom: 16px;
    }

    .marca {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
    }

    .marca img {
        transform: scale(1.55);
    }

    .tarjeta-header h1 {
        font-size: 18px;
    }

    .tarjeta-header p {
        font-size: 12px;
    }

    .campo {
        margin-bottom: 20px;
    }

    .btn-entrar-main {
        padding: 13px 16px;
        font-size: 13.5px;
    }

    .roles-info {
        margin-top: 20px;
        padding-top: 16px;
    }

    .chip {
        font-size: 11px;
        padding: 4px 10px;
    }

    .volver {
        font-size: 12px;
    }
}