html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 12% 16%, rgba(213, 154, 22, .18), transparent 28%),
        linear-gradient(135deg, #111827 0%, #1f2937 48%, #0f172a 100%);
    color: #111827;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body.loading {
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

.login-page {
    align-items: center;
    display: flex;
    min-height: 100vh;
    padding: 28px;
}

.login-shell {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(2, 6, 23, .38);
    display: grid;
    grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 1120px;
    min-height: 660px;
    overflow: hidden;
    width: 100%;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 42px;
}

.login-brand img {
    height: 58px;
    object-fit: contain;
    width: 58px;
}

.login-brand span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.login-title {
    margin-bottom: 28px;
}

.login-title small {
    color: #d99a16;
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.login-title h1 {
    color: #111827;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.08;
    margin: 0 0 12px;
}

.login-title p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.login-form label {
    color: #374151;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 16px 0 8px;
    text-transform: uppercase;
}

.login-input {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    display: flex;
    min-height: 52px;
    padding: 0 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-input:focus-within {
    background: #ffffff;
    border-color: #d99a16;
    box-shadow: 0 0 0 4px rgba(217, 154, 22, .12);
}

.login-input i {
    color: #94a3b8;
    font-size: 15px;
    margin-right: 10px;
    min-width: 18px;
}

.login-input input {
    background: transparent;
    border: 0;
    color: #111827;
    flex: 1;
    font-size: 15px;
    height: 50px;
    outline: 0;
    width: 100%;
}

.login-input input::placeholder {
    color: #94a3b8;
}

#btningresar {
    align-items: center;
    background: linear-gradient(135deg, #d99a16, #b7791f);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 16px 28px rgba(183, 121, 31, .26);
    color: #ffffff;
    display: flex;
    font-size: 15px;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    margin-top: 22px;
    min-height: 52px;
    padding: 0 18px;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}

#btningresar:hover,
#btningresar:focus {
    box-shadow: 0 18px 32px rgba(183, 121, 31, .34);
    color: #ffffff;
    outline: 0;
    transform: translateY(-1px);
}

#btningresar.is-loading {
    cursor: wait;
    opacity: .8;
}

.login-loader {
    align-items: center;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

body.loading .login-loader {
    display: flex;
}

.login-loader-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(217, 154, 22, .28);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(2, 6, 23, .38);
    color: #111827;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    padding: 18px 26px;
    text-align: center;
    width: min(100%, 360px);
}

.login-loader-card img {
    display: block;
    height: 218px;
    margin-bottom: -60px;
    object-fit: contain;
    width: 218px;
}

.login-loader-card strong {
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 6px;
}

.login-loader-card span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.login-footer {
    align-items: center;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: space-between;
    margin-top: 34px;
    padding-top: 18px;
}

.login-footer span {
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.login-footer a {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.login-footer a:hover {
    color: #d99a16;
}

.login-showcase {
    min-height: 660px;
    overflow: hidden;
    position: relative;
}

.showcase-track {
    animation: loginCarousel 18s infinite;
    display: flex;
    height: 100%;
    width: 300%;
}

.showcase-slide {
    align-items: flex-end;
    background-position: center;
    background-size: cover;
    display: flex;
    min-height: 660px;
    padding: 42px;
    position: relative;
    width: 33.3333%;
}

.showcase-slide:before {
    background: linear-gradient(180deg, rgba(15, 23, 42, .12) 0%, rgba(15, 23, 42, .82) 100%);
    content: "";
    inset: 0;
    position: absolute;
}

.slide-one {
    background-image: url('../img/tarjetas_img.png'), linear-gradient(135deg, #0f172a, #334155);
    background-position: center 42%, center;
    background-size: 76%, cover;
    background-repeat: no-repeat;
}

.slide-two {
    background-image: url('../img/tienda.jpg');
}

.slide-three {
    background-image: url('../img/businesscard.png'), linear-gradient(135deg, #111827, #475569);
    background-position: center 38%, center;
    background-size: 72%, cover;
    background-repeat: no-repeat;
}

.showcase-copy {
    color: #ffffff;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.showcase-copy span {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 14px;
    padding: 8px 12px;
    text-transform: uppercase;
}

.showcase-copy h2 {
    font-size: 36px;
    font-weight: 850;
    line-height: 1.08;
    margin: 0 0 12px;
}

.showcase-copy p {
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.showcase-dots {
    bottom: 24px;
    display: flex;
    gap: 8px;
    position: absolute;
    right: 34px;
    z-index: 2;
}

.showcase-dots span {
    animation: dotCarousel 18s infinite;
    background: rgba(255, 255, 255, .42);
    border-radius: 999px;
    display: block;
    height: 8px;
    width: 22px;
}

.showcase-dots span:nth-child(2) {
    animation-delay: 6s;
}

.showcase-dots span:nth-child(3) {
    animation-delay: 12s;
}

@keyframes loginCarousel {
    0%, 28% {
        transform: translateX(0);
    }

    33%, 61% {
        transform: translateX(-33.3333%);
    }

    66%, 94% {
        transform: translateX(-66.6666%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes dotCarousel {
    0%, 28% {
        background: #ffffff;
        width: 34px;
    }

    33%, 100% {
        background: rgba(255, 255, 255, .42);
        width: 22px;
    }
}

@media (max-width: 900px) {
    .login-page {
        padding: 18px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        min-height: 0;
    }

    .login-panel {
        padding: 34px 24px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-title h1 {
        font-size: 28px;
    }

    .login-showcase {
        min-height: 330px;
        order: -1;
    }

    .showcase-slide {
        min-height: 330px;
        padding: 24px;
    }

    .showcase-copy h2 {
        font-size: 25px;
    }

    .showcase-copy p {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .login-page {
        align-items: flex-start;
        padding: 12px;
    }

    .login-shell {
        border-radius: 14px;
    }

    .login-panel {
        padding: 26px 18px;
    }

    .login-brand img {
        height: 48px;
        width: 48px;
    }

    .login-title h1 {
        font-size: 25px;
    }

    .login-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .login-showcase {
        min-height: 280px;
    }

    .showcase-slide {
        min-height: 280px;
        padding: 20px;
    }

    .showcase-copy span {
        font-size: 10px;
        margin-bottom: 10px;
        padding: 6px 9px;
    }

    .showcase-copy h2 {
        font-size: 22px;
    }

    .showcase-dots {
        bottom: 14px;
        right: 18px;
    }
}
