/* Sells Web - autoria: FlapWorks - 26/11/2026 */
/* =========================================================================
   Login
   ========================================================================= */
body.sw-login-page { background: var(--sw-surface); }
.sw-login { display: grid; min-height: 100vh; }
@media (min-width: 992px) { .sw-login { grid-template-columns: minmax(420px, 5fr) 7fr; } }

.sw-login-form { display: flex; flex-direction: column; padding: 1.5rem 1.25rem; }
@media (min-width: 576px) { .sw-login-form { padding: 2rem 3rem; } }
.sw-login-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: var(--sw-t900); }
.sw-login-brand .sw-brand-mark { background: linear-gradient(135deg, var(--sw-g600), var(--sw-g400)); color: #fff; }
.sw-login-box { width: 100%; max-width: 400px; margin: auto; padding: 2rem 0; }
.sw-login-box h1 { margin-bottom: .35rem; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; color: var(--sw-t900); }
.sw-login-box .lead { margin-bottom: 1.5rem; color: var(--sw-muted); font-size: 1rem; }
.sw-login .sw-switch { display: flex; width: 100%; margin-bottom: 1.5rem; }
.sw-login .sw-switch button { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; }

.sw-field { position: relative; }
.sw-field > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--sw-g600); font-size: 1.25rem; pointer-events: none; }
.sw-field .form-control { height: 52px; padding-left: 2.8rem; border-radius: 12px; background: var(--sw-g25); font-size: 1rem; }
.sw-field .form-control:focus { background: var(--sw-surface); }
.sw-field .sw-field-btn {
    position: absolute;
    right: .4rem;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--sw-muted);
    font-size: 1.25rem;
}
.sw-field .sw-field-btn:hover { background: var(--sw-g50); color: var(--sw-t800); }
.sw-caps { display: none; margin-top: .35rem; color: #92400e; font-size: .8rem; }
.sw-caps.is-on { display: flex; align-items: center; gap: .3rem; }
.sw-login .btn-lg { height: 52px; border-radius: 12px; font-weight: 600; }
.sw-login-foot { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; color: var(--sw-muted); font-size: .8rem; }
.sw-online { display: inline-flex; align-items: center; gap: .35rem; }
.sw-online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sw-g400); box-shadow: 0 0 0 3px rgba(var(--sw-g400-rgb), .2); }

/* PIN */
.sw-operadores { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; }
.sw-operador {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    flex-shrink: 0;
    width: 86px;
    padding: .6rem .3rem;
    border: 2px solid var(--sw-line);
    border-radius: 14px;
    background: var(--sw-surface);
    color: var(--sw-ink);
    font-size: .78rem;
    font-weight: 600;
}
.sw-operador.active { border-color: var(--sw-g600); background: var(--sw-g50); }
.sw-pin-dots { display: flex; justify-content: center; gap: .7rem; margin: .5rem 0 1rem; }
.sw-pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sw-g300); }
.sw-pin-dots span.is-on { background: var(--sw-g600); border-color: var(--sw-g600); }
.sw-pin-dots.is-error { animation: swShake .35s; }
.sw-pin-dots.is-error span { border-color: var(--sw-red); }
.sw-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.sw-keypad button {
    height: 58px;
    border: 1px solid var(--sw-line);
    border-radius: 14px;
    background: var(--sw-g25);
    color: var(--sw-t900);
    font-size: 1.35rem;
    font-weight: 700;
}
.sw-keypad button:hover { background: var(--sw-g50); }
.sw-keypad button:active { background: var(--sw-g100); }
.sw-keypad .is-muted { background: var(--sw-surface); color: var(--sw-muted); font-size: 1.1rem; }
@keyframes swShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* Lado ilustrado */
.sw-login-art {
    position: relative;
    display: none;
    overflow: hidden;
    padding: 3rem;
    background: radial-gradient(circle at 85% 10%, rgba(163, 230, 53, .35), transparent 40%),
                radial-gradient(circle at 10% 90%, rgba(var(--sw-g400-rgb), .35), transparent 45%),
                linear-gradient(150deg, var(--sw-g950) 0%, var(--sw-g800) 55%, var(--sw-g600) 100%);
    color: #fff;
}
@media (min-width: 992px) { .sw-login-art { display: flex; flex-direction: column; justify-content: center; } }
.sw-login-art::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.sw-login-art > * { position: relative; }
.sw-login-art h2 { color: #fff; max-width: 30rem; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sw-login-art h2 span { color: var(--sw-lime); }
.sw-login-features { display: grid; gap: .8rem; max-width: 30rem; margin: 1.5rem 0 2.5rem; padding: 0; list-style: none; }
.sw-login-features li { display: flex; align-items: center; gap: .75rem; color: rgba(255, 255, 255, .88); }
.sw-login-features i { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: var(--sw-lime); font-size: 1.2rem; }
.sw-login-mock { display: flex; align-items: flex-end; gap: 1.25rem; }
.sw-mock-card {
    width: 300px;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: var(--sw-surface);
    color: var(--sw-ink);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    animation: swFloat 6s ease-in-out infinite;
}
.sw-mock-card small { color: var(--sw-muted); }
.sw-mock-card strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--sw-t900); }
.sw-mock-trend { display: inline-block; margin-left: .3rem; padding: 0 .4rem; border-radius: 999px; background: var(--sw-g50); color: var(--sw-g700); font-size: .75rem; font-weight: 700; }
.sw-mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: .75rem; }
.sw-mock-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--sw-g400), var(--sw-g700)); }
.sw-mock-bars .h1 { height: 35%; } .sw-mock-bars .h2 { height: 55%; } .sw-mock-bars .h3 { height: 45%; } .sw-mock-bars .h4 { height: 75%; }
.sw-mock-bars .h5 { height: 60%; } .sw-mock-bars .h6 { height: 95%; background: linear-gradient(180deg, #bef264, #65a30d); } .sw-mock-bars .h7 { height: 70%; }
.sw-mock-receipt {
    width: 210px;
    padding: 1rem 1rem 1.3rem;
    background: var(--sw-surface);
    color: var(--sw-ink);
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
    animation: swFloat 6s ease-in-out -3s infinite;
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 5px, #000 5.5px) bottom / 12px 8px repeat-x;
    mask: linear-gradient(#000 0 0) top / 100% calc(100% - 8px) no-repeat, radial-gradient(circle at 6px 8px, transparent 5px, #000 5.5px) bottom / 12px 8px repeat-x;
}
.sw-mock-receipt div { display: flex; justify-content: space-between; padding: .12rem 0; }
.sw-mock-receipt .is-total { margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed #999; font-weight: 700; color: var(--sw-g700); }
@keyframes swFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
