*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background-color: #0d0d0d;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #e5e5e5;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 0;
}
.login-card {
    position: relative;
    z-index: 1;
    background: #141519;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 380px;
}
.brand {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f47521;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.brand span { color: #fff; }
.subtitle {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    margin-bottom: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}
input {
    width: 100%;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #e5e5e5;
    font-size: 0.9rem;
    outline: none;
    transition: border-color .2s;
}
input:focus { border-color: #f47521; }
.remember-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #f47521;
    cursor: pointer;
}
.remember-row label {
    font-size: 0.8rem;
    color: #888;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    cursor: pointer;
}
.btn-login {
    width: 100%;
    background: #f47521;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background .2s;
}
.btn-login:hover { background: #d4601a; }
/* ── PWA popup ── */
#pwa-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 900;
    animation: pwaFadeIn .3s ease;
}
#pwa-sheet {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a1a1a;
    border-top: 2px solid #f47521;
    border-radius: 16px 16px 0 0;
    padding: 1.75rem 1.5rem 2.5rem;
    z-index: 901;
    text-align: center;
    animation: pwaSlideUp .3s ease;
    max-width: 480px;
    margin: 0 auto;
}
#pwa-close {
    position: absolute; top: 1rem; right: 1rem;
    background: none; border: none; color: #555;
    font-size: 1.1rem; cursor: pointer; padding: 0.25rem;
    transition: color .2s;
}
#pwa-close:hover { color: #e5e5e5; }
#pwa-logo img {
    width: 72px; height: 72px;
    border-radius: 16px;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(244,117,33,.3);
}
#pwa-title {
    font-size: 1.2rem; font-weight: 800;
    color: #fff; margin-bottom: 0.5rem;
}
#pwa-desc {
    color: #888; font-size: 0.875rem;
    line-height: 1.5; margin-bottom: 1.5rem;
}
#pwa-install-btn, #pwa-ios-ok {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: #f47521; color: #fff;
    border: none; border-radius: 8px;
    padding: 0.75rem 2rem;
    font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: background .2s;
    width: 100%; justify-content: center;
}
#pwa-install-btn:hover, #pwa-ios-ok:hover { background: #d4601a; }
#pwa-ios-steps {
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-bottom: 1.25rem; text-align: left;
}
.pwa-step {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.9rem; color: #ccc;
}
.pwa-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: #f47521; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; flex-shrink: 0;
}
@keyframes pwaFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes pwaSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.error-box {
    background: #3a1a1a;
    border: 1px solid #f44;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    color: #f88;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}
