/* NESTMATE — assets/css/login.css */

/* ── Login screen fills full height (no tab-bar gap) ── */
#loginScreen {
    background: #fff;
    bottom: 0 !important;
}

/* ── Vertically centre logo + form with safe-area breathing room ── */
#loginScreen .scroll-body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top:    calc(var(--safe-top) + 52px);
    padding-bottom: calc(var(--safe-bot) + 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── PWA install banner — top notification-style alert ── */
#pwaBanner {
    display: none;              /* toggled to flex by JS */
    position: absolute;
    top: calc(var(--safe-top) + 10px);
    left: 14px;
    right: 14px;
    z-index: 20;
    background: #0F4C3A;
    border-radius: 14px;
    padding: 11px 13px;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 28px rgba(0,0,0,.22);
    animation: pwaDropIn .4s cubic-bezier(.32,.72,0,1) both;
}
@keyframes pwaDropIn {
    from { opacity: 0; transform: translateY(-14px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);   }
}

/* APA1 — admin tap hint */
.tap-hint {
    font-size: 9px;
    color: var(--txt3);
    text-align: center;
    margin-top: 5px;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}
.tap-hint.show { opacity: 1; }

/* Admin overlay */
.admin-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 70;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.admin-overlay.open { opacity: 1; pointer-events: auto; }
.admin-sheet {
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    padding: 8px 18px 28px;
    width: 100%;
    transform: translateY(30px);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.admin-overlay.open .admin-sheet { transform: translateY(0); }

/* Task / home screen shared CSS below login */
.task-item { background: var(--card); border-radius: 14px; margin-bottom: 7px; display: flex; align-items: center; overflow: hidden; cursor: pointer; border: .5px solid var(--bdr); transition: opacity .2s; }
.task-item.done { opacity: .55; }
.task-accent { width: 3px; min-height: 54px; align-self: stretch; flex-shrink: 0; transition: background .25s; }
.task-accent.pending  { background: #e3f2ec; }
.task-accent.complete { background: var(--cb); }
.task-content { flex: 1; padding: 12px 11px; }
.task-num  { font-size: 9px; color: var(--txt3); font-weight: 600; letter-spacing: .05em; margin-bottom: 3px; }
.task-text { font-size: 13px; color: var(--txt); line-height: 1.4; }
.task-text.done { text-decoration: line-through; color: var(--txt3); }
.task-check { width: 48px; min-height: 54px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checkbox { width: 26px; height: 26px; border-radius: 8px; border: 2px solid rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; transition: all .18s; }
.checkbox.checked { background: var(--cb); border-color: var(--cb); }
.complete-btn { width: 100%; padding: 14px; border-radius: 14px; border: none; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; }
.complete-btn.active   { background: var(--cb); color: #fff; }
.complete-btn.inactive { background: rgba(0,0,0,.07); color: var(--txt3); pointer-events: none; }

/* Duty cards */
.duty-card { background: var(--card); border-radius: 16px; border: .5px solid var(--bdr); padding: 12px 14px; display: flex; align-items: center; gap: 11px; box-shadow: 0 2px 8px rgba(0,0,0,.05); flex-shrink: 0; }
.duty-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.duty-lbl  { font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px; }
.duty-name { font-size: 14px; font-weight: 700; color: var(--txt); letter-spacing: -.2px; }
.duty-sub  { font-size: 10px; color: var(--txt2); margin-top: 1px; }
.duty-btn  { margin-left: auto; flex-shrink: 0; background: #1565C0; color: #fff; border: none; border-radius: 8px; padding: 5px 11px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: inherit; }
.duty-btn:disabled { background: #D1D1D6; pointer-events: none; }

/* Nudge items */
.nudge-item.sel { background: var(--cbL) !important; border-color: rgba(29,158,117,.35) !important; }
.nudge-item.sel .nudge-icon { background: #C8EFE0 !important; }
.nudge-item.sel .nudge-radio { background: var(--cb); border-color: var(--cb); }

/* Splash confetti */
#splashScreen.open { transform: scale(1) !important; opacity: 1 !important; pointer-events: auto !important; }
.confetti-piece { position: absolute; border-radius: 2px; animation: cfall linear forwards; }
