/* AlamosWeb app page */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; font-size: 14px;
       background: #f0f2f5; color: #222; height: 100vh; display: flex; flex-direction: column; }

/* ── Auth / 2FA ── */
.card { background: #fff; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.12);
        padding: 32px 36px; width: 360px; margin: auto; }
.card h1 { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px;
               text-transform: uppercase; letter-spacing: .4px; }
.field input[type="text"], .field input[type="password"], .field input[type="number"] {
  width: 100%; padding: 8px 10px; border: 1px solid #d0d5dd; border-radius: 5px;
  font-size: 14px; outline: none; transition: border-color .15s; }
.field input:focus { border-color: #c0392b; }
.remember { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #555; margin-bottom: 20px; }
.btn { display: inline-block; padding: 9px 20px; border: none; border-radius: 5px;
       font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: #c0392b; color: #fff; width: 100%; }
.btn-primary:hover:not(:disabled) { background: #a93226; }
.btn-secondary { background: #eee; color: #333; }
.btn-secondary:hover:not(:disabled) { background: #e0e0e0; }
.error-msg { color: #c0392b; font-size: 12px; margin-top: 10px; min-height: 16px; }
.disclaimer { margin-top: 20px; padding: 12px 14px; background: #f8f9fb; border: 1px solid #e4e7ed;
              border-radius: 6px; font-size: 12px; color: #555; line-height: 1.55; }
.disclaimer strong { color: #333; }
.disclaimer ul { margin: 6px 0 0 16px; }
.disclaimer li { margin-bottom: 6px; }
.disclaimer a { color: #c0392b; }

/* ── Main layout ── */
.toolbar { display: flex; align-items: center; gap: 10px; background: #fff;
           border-bottom: 1px solid #e0e0e0; padding: 8px 16px; flex-shrink: 0; }
.toolbar .app-title { font-weight: 700; font-size: 16px; color: #c0392b; margin-right: 8px; }
.status-area { flex: 1; overflow: hidden; }
#sync-status { font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sync-bar { height: 3px; background: #e0e0e0; border-radius: 2px; margin-top: 3px; overflow: hidden; }
#sync-bar-fill { height: 100%; background: #c0392b; border-radius: 2px; width: 0%; transition: width .3s; }
#dash-frame { flex: 1; border: none; width: 100%; min-height: 0; }
.hidden { display: none !important; }
@media (max-width: 480px) { .card { width: 100%; border-radius: 0; padding: 24px 20px; } }
