:root {
    --red: #d90429;
    --red-dark: #a50320;
    --red-light: #fff1f3;
    --yellow: #ffb703;
    --yellow-dark: #fb8500;
    --green: #16a34a;
    --green-light: #ecfdf3;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e9e9e9;
    --gray-400: #9ca3af;
    --gray-600: #6b7280;
    --gray-800: #292929;
    --white: #ffffff;
    --radius: 22px;
    --shadow: 0 20px 50px rgba(0, 0, 0, .10);
    --shadow-red: 0 12px 30px rgba(217, 4, 41, .25);
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-800);
    background: radial-gradient(circle at 15% 10%, rgba(255, 183, 3, .18), transparent 30%),
                radial-gradient(circle at 90% 85%, rgba(217, 4, 41, .12), transparent 35%),
                #fffaf8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.background-shape {
    position: fixed;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
    z-index: 0;
}

.shape-one {
    top: -100px;
    left: -90px;
    background: linear-gradient(135deg, rgba(217, 4, 41, .14), rgba(255, 183, 3, .08));
}

.shape-two {
    right: -100px;
    bottom: -110px;
    background: linear-gradient(135deg, rgba(255, 183, 3, .14), rgba(217, 4, 41, .10));
}

.login-wrapper { 
    width: 100%; 
    max-width: 430px; 
    position: relative; 
    z-index: 2; 
}

.login-card {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(217,4,41,.08);
    border-radius: 30px;
    padding: 28px 24px 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: cardEnter .5s ease;
}

@keyframes cardEnter {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brand { 
    text-align: center; 
    margin-bottom: 24px; 
}

.brand-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 13px;
    border-radius: 23px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: white;
    background: linear-gradient(145deg, var(--red), var(--red-dark));
    box-shadow: 0 12px 25px rgba(217,4,41,.25);
    transform: rotate(-3deg);
}

.brand-icon i { transform: rotate(3deg); }

.brand-name { 
    margin: 0; 
    font-size: 22px; 
    line-height: 1.1; 
    font-weight: 900; 
    letter-spacing: -.7px; 
    color: var(--red); 
}

.brand-subtitle { 
    margin: 7px 0 0; 
    font-size: 12px; 
    color: var(--gray-600); 
    font-weight: 600; 
}

.store-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    margin-bottom: 22px;
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    transition: .3s ease;
}

.store-status.online {
    background: linear-gradient(135deg, #ffffff, #f1fff6);
    border-color: #c8eed7;
}

.store-status.offline {
    background: linear-gradient(135deg, #ffffff, #fff5f5);
    border-color: #ffd5d9;
}

.store-status.warning {
    background: linear-gradient(135deg, #ffffff, #fffdf0);
    border-color: #ffeeba;
}

.status-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    min-width: 0; 
    flex: 1; 
}

.status-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    color: var(--gray-600);
    font-size: 18px;
}

.online .status-icon { background: var(--green-light); color: var(--green); }
.offline .status-icon { background: #fff0f1; color: var(--red); }
.warning .status-icon { background: #fff9db; color: var(--yellow-dark); }

.status-info { min-width: 0; flex: 1; }
.status-title { margin: 0; font-size: 13px; font-weight: 800; }
.status-subtitle { 
    margin: 3px 0 0; 
    font-size: 10px; 
    color: var(--gray-600); 
    font-weight: 500; 
    white-space: normal; 
    word-break: break-word; 
}

.status-badge { 
    flex-shrink: 0; 
    font-size: 9px; 
    font-weight: 900; 
    padding: 7px 9px; 
    border-radius: 999px; 
    background: #eeeeee; 
    color: var(--gray-600); 
    letter-spacing: .4px; 
}

.online .status-badge { background: #dcfce7; color: #15803d; }
.offline .status-badge { background: #fee2e2; color: #dc2626; }
.warning .status-badge { background: #fff3cd; color: #856404; }

.error-message {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
    border-radius: 15px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.error-message i { font-size: 17px; flex-shrink: 0; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin: 0 0 7px 3px; font-size: 11px; font-weight: 800; color: #3f3f46; text-transform: uppercase; letter-spacing: .3px; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-400); font-size: 17px; z-index: 2; pointer-events: none; transition: .2s; }

.form-input {
    width: 100%;
    height: 54px;
    border-radius: 17px;
    border: 1px solid #eadfe0;
    background: #fffafa;
    outline: none;
    padding: 0 16px 0 47px;
    color: #292929;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.form-input::placeholder { color: #b3abad; font-weight: 500; }
.form-input:focus { background: white; border-color: var(--red); box-shadow: 0 0 0 4px rgba(217,4,41,.08); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 600;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--gray-600);
    user-select: none;
}

.remember-me input {
    accent-color: var(--red);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    transition: opacity .2s;
}

.forgot-password:hover {
    opacity: .8;
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    height: 56px;
    border: 0;
    border-radius: 18px;
    margin-top: 4px;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    box-shadow: var(--shadow-red);
    transition: transform .15s, box-shadow .15s, opacity .15s;
}

.btn-login:hover { box-shadow: 0 15px 35px rgba(217,4,41,.30); }
.btn-login:active { transform: scale(.98); }
.btn-login i { margin-left: 5px; font-size: 15px; }

.divider { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin: 24px 0 16px; 
    color: #aaa; 
    font-size: 9px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.divider::before, .divider::after { 
    content: ""; 
    flex: 1; 
    height: 1px; 
    background: #eee; 
}

/* Card de Destaque para Registro / Bônus */
.register-box {
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    border: 1px solid #ffe4e6;
    border-radius: 20px;
    padding: 16px;
    text-align: center;
    position: relative;
}

.register-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ffb703;
    color: #5c3a00;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 99px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.register-title {
    font-size: 13px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 4px;
}

.register-desc {
    font-size: 11px;
    color: #6b7280;
    margin: 0 0 14px;
    font-weight: 500;
}

.btn-register {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    border-radius: 15px;
    border: 0;
    background: var(--red);
    color: white;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(217, 4, 41, .2);
    transition: .2s;
}

.btn-register:hover { background: var(--red-dark); color: white; }
.btn-register i { font-size: 16px; }

.menu-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 64px;
    margin-top: 14px;
    padding: 11px 13px;
    border-radius: 19px;
    text-decoration: none;
    overflow: hidden;
    color: #2b1600;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
    box-shadow: 0 9px 22px rgba(251,133,0,.23);
    transition: transform .15s, box-shadow .15s;
}

.menu-button:hover { color: #2b1600; box-shadow: 0 12px 28px rgba(251,133,0,.28); }
.menu-button:active { transform: scale(.98); }
.menu-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.30); font-size: 20px; }
.menu-text { flex: 1; min-width: 0; }
.menu-title { display: block; font-size: 12px; font-weight: 900; line-height: 1.2; }
.menu-subtitle { display: block; margin-top: 3px; font-size: 9px; font-weight: 600; opacity: .72; }
.menu-arrow { font-size: 17px; opacity: .75; }

.footer { text-align: center; margin-top: 20px; color: #aaa; font-size: 9px; font-weight: 600; }
.footer strong { color: #888; }

.loading { position: fixed; inset: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 999; }
.loading.active { display: flex; }
.loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.spinner { width: 38px; height: 38px; border: 4px solid #f3d9dc; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-text { font-size: 11px; font-weight: 800; color: var(--gray-600); }

@keyframes spin { to { transform: rotate(360deg); } }