/* =========================================================================
   SuperMandingas — Login
   Self-contained (this page loads no bootstrap/sb-admin-2), matching the
   same brand tokens used in assets/admin/css/theme.css.
   ========================================================================= */

:root {
    --sm-bg: #F3F5F7;
    --sm-surface: #FFFFFF;
    --sm-border: #E1E5EA;
    --sm-ink: #0F1419;
    --sm-muted: #5F6B78;
    --sm-muted-2: #8B95A1;
    --sm-accent: #E23744;
    --sm-accent-dark: #B01F2C;
    --sm-accent-soft: #FDECEE;
    --sm-font-display: 'Space Grotesk', system-ui, sans-serif;
    --sm-font-body: 'DM Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: var(--sm-bg); */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/bg.jpg") top center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: top, left !important;
    font-family: var(--sm-font-body);
    color: var(--sm-ink);
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.pos-login-bg-a,
.pos-login-bg-b {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.pos-login-bg-a {
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    background: var(--sm-accent-soft);
}

.pos-login-bg-b {
    bottom: -220px;
    left: -160px;
    width: 460px;
    height: 460px;
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
}

.pos-login-card {
    position: relative;
    width: 380px;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 20, 25, 0.10);
    padding: 44px 32px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pos-login-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--sm-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sm-font-display);
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 8px;
}

.pos-login-title {
    margin: 0;
    font-family: var(--sm-font-display);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pos-login-subtitle {
    margin: 2px 0 26px;
    font-size: 13px;
    color: var(--sm-muted-2);
}

.pos-login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pos-login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.pos-login-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sm-muted);
}

.pos-login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    box-sizing: border-box;
    padding: 0 14px;
    background: var(--sm-bg);
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pos-login-input:focus-within {
    border-color: var(--sm-accent);
    box-shadow: 0 0 0 3px var(--sm-accent-soft);
}

.pos-login-input i {
    color: var(--sm-muted-2);
    font-size: 15px;
    flex-shrink: 0;
}

.pos-login-control {
    flex-grow: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-family: var(--sm-font-body);
    font-size: 14.5px;
    color: var(--sm-ink);
}

.pos-login-control::placeholder {
    color: var(--sm-muted-2);
}

.pos-pin {
    display: flex;
    gap: 8px;
}

.pos-pin__box {
    flex: 1 1 0;
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-bg);
    outline: none;
    text-align: center;
    font-family: var(--sm-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--sm-ink);
    transition: border-color .15s ease, box-shadow .15s ease;
    /* type="text" (not "password") so Chrome/Edge stop treating this as a
       saved-credential field and offering the autofill dropdown; this masks
       the digit visually instead. Chrome/Safari/Edge only — Firefox has no
       equivalent, so the digit shows there. */
    -webkit-text-security: disc;
}

.pos-pin__box:focus {
    border-color: var(--sm-accent);
    border-width: 1.5px;
    box-shadow: 0 0 0 3px var(--sm-accent-soft);
}

.pos-login-submit {
    margin-top: 8px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--sm-accent);
    color: #fff;
    font-family: var(--sm-font-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.pos-login-submit:hover {
    background: var(--sm-accent-dark);
}

.pos-login-footnote {
    margin: 22px 0 0;
    font-size: 12px;
    color: var(--sm-muted-2);
}

.msj {
    width: 100%;
}

.msj .alert {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
}

.msj .alert-danger {
    background: var(--sm-accent-soft);
    color: var(--sm-accent-dark);
}

.msj .alert-warning {
    background: #FBF3E2;
    color: #B7791F;
}

@media (max-width: 420px) {
    .pos-login-card {
        padding: 36px 22px 28px;
    }
}