/* PayWiz Clock — calm premium kiosk skin (Light & airy). Same class names;
   soft cool neutrals, one quiet teal accent, generous air. */
:root{
    --pw-teal:#0B7F7B;      /* aligned to the workspace brand */
    --pw-teal-700:#096764;
    --pw-teal-900:#173430;
    --pw-ink:#173430;
    --pw-ink-2:#3a4f4b;
    --pw-muted:#8a9b97;
    --pw-line:#e8efed;
    --pw-tint:#e4efed;
    --pw-bg:#eef3f2;
    --pw-card:#ffffff;
    --pw-shadow:0 1px 2px rgba(16,46,44,.04), 0 22px 50px -28px rgba(16,46,44,.16);
    --pw-radius:16px;
}

html,body{ height:100%; }
body{
    font-family:"Inter", sans-serif;
    color:var(--pw-ink);
    background:var(--pw-bg);
    -webkit-font-smoothing:antialiased;
}

.kiosk-footer{
    background-color:var(--pw-teal-900);
    color:#cfe3e3;
}

.max-w-sm{ max-width:500px; margin:0 auto; }

.text-lg{ font-size:18px; }
.text-sm{ font-size:14px; }
.text-xs{ font-size:12px; }
.text-gray{ color:var(--pw-muted); }

/* Company / site input */
.site-input-lg{
    border:2px solid var(--pw-line);
    height:54px;
    border-radius:12px;
    background:var(--pw-card);
    transition:border-color .15s ease, box-shadow .15s ease;
}
.site-input-lg:focus{
    outline:none;
    border-color:var(--pw-teal);
    box-shadow:0 0 0 4px rgba(10,125,130,.12);
    font-weight:500;
    font-size:15px;
}
.site-input-lg::placeholder{ color:var(--pw-muted); font-weight:500; }

/* Primary action */
.btn-verify{
    background:var(--pw-teal);
    color:#fff;
    font-size:15px;
    font-weight:600;
    padding:12px 22px;
    border-radius:12px;
    border:none;
    box-shadow:0 6px 16px rgba(10,125,130,.22);
    transition:background-color .15s ease, transform .05s ease;
}
.btn-verify:hover{ background-color:var(--pw-teal-700); color:#fff; }
.btn-verify:active{ transform:scale(.98); }

.top-text{ font-size:16px !important; vertical-align:text-top; display:inline-block; }

.company-icon{
    background-color:var(--pw-tint);
    color:var(--pw-teal);
    width:40px;
    height:40px;
    border-radius:100em;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Tap to begin */
.tap-circle{
    background:radial-gradient(circle at 30% 30%, var(--pw-teal), var(--pw-teal-900));
    width:210px;
    height:210px;
    border-radius:100em;
    cursor:pointer;
    box-shadow:0 18px 44px rgba(10,125,130,.32);
    transition:transform .08s ease, box-shadow .2s ease;
}
.tap-circle:hover{ transform:translateY(-2px); box-shadow:0 22px 52px rgba(10,125,130,.4); }
.tap-circle:active{ transform:scale(.97); }

.back-btn{
    color:var(--pw-teal);
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

/* Face capture */
.face-scan-container{
    position:relative;
    width:450px;
    max-width:100%;
    height:350px;
    border:2px solid var(--pw-line);
    border-radius:var(--pw-radius);
    overflow:hidden;
    background:#000;
    box-shadow:var(--pw-shadow);
}
.scan-frame::before{
    content:'';
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
    width:300px; height:300px;
    border:2px dashed rgba(255,255,255,.7);
    border-radius:14px;
}

/* PIN keypad */
.keypad-btn{
    width:72px;
    height:72px;
    border-radius:50%;
    border:1px solid var(--pw-line);
    background-color:var(--pw-card);
    color:var(--pw-ink);
    font-size:24px;
    font-weight:600;
    cursor:pointer;
    transition:background-color .15s ease, transform .05s ease, border-color .15s ease;
}
.keypad-btn:hover{ background-color:var(--pw-tint); border-color:var(--pw-teal); }
.keypad-btn:active{ transform:scale(.94); }

.pin-dot{
    width:12px;
    height:12px;
    border-radius:50%;
    background-color:var(--pw-line);
    transition:background-color .2s ease, transform .2s ease;
}
.pin-dot.filled{ background-color:var(--pw-teal); transform:scale(1.05); }

/* Generic premium card helper (used by the redesigned screens) */
.pw-card{
    background:var(--pw-card);
    border:1px solid var(--pw-line);
    border-radius:var(--pw-radius);
    box-shadow:var(--pw-shadow);
}

/* Brand the Bootstrap primary button + input focus (loads after bootstrap.css) */
.btn-primary{
    background-color:var(--pw-teal);
    border-color:var(--pw-teal);
    box-shadow:0 6px 16px rgba(10,125,130,.2);
    font-weight:600;
}
.btn-primary:hover,.btn-primary:focus{
    background-color:var(--pw-teal-700);
    border-color:var(--pw-teal-700);
}
.btn-primary:active{
    background-color:var(--pw-teal-900) !important;
    border-color:var(--pw-teal-900) !important;
}
.form-control:focus{
    border-color:var(--pw-teal);
    box-shadow:0 0 0 4px rgba(10,125,130,.12);
}

/* Login screen */
.login-eyebrow{
    font-size:0.72rem;
    letter-spacing:0.16em;
    font-weight:700;
    color:var(--pw-teal);
    text-align:center;
    margin-bottom:0.35rem;
}
.login-title{
    font-size:1.35rem;
    font-weight:700;
    color:var(--pw-ink);
    text-align:center;
    margin-bottom:0.25rem;
}
.login-sub{
    font-size:0.95rem;
    color:var(--pw-muted);
    text-align:center;
    margin-bottom:1.25rem;
}

/* QR alternative entry (start screen "Scan QR from your phone") */
.qr-alt-btn{
    display:flex;
    gap:0.5rem;
    align-items:center;
    justify-content:center;
    max-width:280px;
    padding:0.7rem 1.2rem;
    border:2px solid var(--pw-teal);
    color:var(--pw-teal);
    background:#fff;
    border-radius:12px;
    font-weight:600;
    text-decoration:none;
    transition:background-color 0.15s ease;
}
.qr-alt-btn:hover{ background:var(--pw-tint); color:var(--pw-teal); }

/* ========================================================================
   PayWiz Clock — premium design system (shared across all kiosk screens)
   ======================================================================== */
:root{
    /* Soft, low shadows for a calm light field — cards rest, not float */
    --pw-shadow-sm:0 1px 2px rgba(16,46,44,.05);
    --pw-shadow-md:0 6px 18px -8px rgba(16,46,44,.12);
    --pw-shadow-lg:0 1px 2px rgba(16,46,44,.04), 0 24px 50px -30px rgba(16,46,44,.20);
    --pw-ease:cubic-bezier(.2,.7,.2,1);
}

/* ---- Calm light canvas: soft cool neutral, gentle vertical wash ---- */
body{
    min-height:100vh;
    color:var(--pw-ink);
    background:linear-gradient(180deg,#f3f7f6 0%, var(--pw-bg) 60%);
    background-attachment:fixed;
}

/* The premium top bar replaces the legacy white company header wherever it
   appears (the component renders as <header class="header">). */
.kiosk-header, header.header{ display:none !important; }
.kx-noframe .kiosk-footer{ display:none !important; }

/* ---- Top bar (calm, light) ---- */
.kx-topbar{
    display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
    color:var(--pw-ink); padding:15px 30px;
    border-bottom:1px solid var(--pw-line);
    position:relative; z-index:2;
}
.kx-brand{ display:flex; align-items:center; gap:11px; text-decoration:none; color:var(--pw-ink); }
.kx-mark{ width:34px; height:34px; border-radius:10px; background:var(--pw-tint); color:var(--pw-teal); display:flex; align-items:center; justify-content:center; }
.kx-wordmark{ font-size:1.04rem; font-weight:500; letter-spacing:.005em; color:var(--pw-ink); }
.kx-wordmark b{ font-weight:700; }
.kx-topmid{ text-align:center; }
.kx-kioskname{ font-size:1.04rem; font-weight:600; line-height:1.1; color:var(--pw-ink); }
.kx-tag{ font-size:.8rem; color:var(--pw-muted); margin-top:1px; }
.kx-topright{ display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.kx-time{ font-size:.98rem; font-weight:500; font-variant-numeric:tabular-nums; color:var(--pw-ink-2); }
.kx-logout{ color:var(--pw-ink-2); font-size:.88rem; font-weight:500; text-decoration:none; border:1px solid var(--pw-line); border-radius:10px; padding:7px 15px; transition:background-color .15s var(--pw-ease); }
.kx-logout:hover{ background:var(--pw-tint); color:var(--pw-teal); }

/* ---- Screen shell ---- */
.kx-screen{ width:100%; max-width:560px; margin:0 auto; padding:22px 20px 30px; display:flex; flex-direction:column; align-items:center; position:relative; z-index:1; animation:kx-rise .4s var(--pw-ease) both; }
@keyframes kx-rise{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* ---- Status chips ---- */
.kx-chips{ display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-bottom:16px; }
.kx-chip{ display:inline-flex; align-items:center; gap:7px; font-size:.82rem; font-weight:500; color:var(--pw-muted); background:#fff; border:1px solid var(--pw-line); border-radius:100em; padding:7px 15px; box-shadow:var(--pw-shadow-sm); }
.kx-dot{ width:8px; height:8px; border-radius:50%; background:#37b489; box-shadow:0 0 0 3px rgba(55,180,137,.16); }

/* ---- Card ---- */
.kcard{ width:100%; max-width:460px; background:var(--pw-card); border:1px solid var(--pw-line); border-radius:24px; box-shadow:var(--pw-shadow-lg); padding:1.8rem 2rem; }
.kcard-eyebrow{ font-size:.7rem; letter-spacing:.14em; font-weight:600; color:var(--pw-muted); text-align:center; text-transform:uppercase; }
.kcard-title{ font-size:1.5rem; font-weight:600; color:var(--pw-ink); text-align:center; line-height:1.15; margin-top:.45rem; letter-spacing:-.01em; }
.kcard-sub{ font-size:.95rem; color:var(--pw-muted); text-align:center; margin-top:.5rem; line-height:1.5; }

/* ---- Icon tile (flat, calm) ---- */
.ktile{ width:48px; height:48px; flex:0 0 auto; border-radius:13px; display:flex; align-items:center; justify-content:center; color:var(--pw-teal); background:var(--pw-tint); }

/* ---- Buttons (flat, gentle) ---- */
.kbtn{ display:flex; align-items:center; justify-content:center; gap:9px; width:100%; padding:15px 20px; border:none; border-radius:14px; font-weight:600; font-size:1rem; cursor:pointer; text-decoration:none; transition:transform .06s var(--pw-ease), background-color .15s var(--pw-ease), box-shadow .15s var(--pw-ease); }
.kbtn:active{ transform:scale(.985); }
.kbtn-primary{ background:var(--pw-teal); color:#fff; box-shadow:0 12px 26px -14px rgba(26,143,134,.65); }
.kbtn-primary:hover{ background:var(--pw-teal-700); color:#fff; }
.kbtn-ghost{ background:#fff; color:var(--pw-teal); border:1px solid var(--pw-line); }
.kbtn-ghost:hover{ border-color:var(--pw-teal); background:var(--pw-tint); color:var(--pw-teal); }
.kbtn-danger{ background:#d9534f; color:#fff; box-shadow:0 12px 26px -14px rgba(217,83,79,.6); }
.kbtn:disabled{ opacity:.45; cursor:not-allowed; box-shadow:none; }
.klink{ display:block; text-align:center; margin-top:.9rem; color:var(--pw-teal); font-weight:600; text-decoration:none; }
.klink:hover{ color:var(--pw-teal-700); }
.kx-mnote{ color:var(--pw-muted); }

/* ---- Premium PIN keypad ---- */
.kkey{ width:74px; height:74px; border-radius:50%; border:1px solid var(--pw-line); background:#fff; color:var(--pw-ink); font-size:1.55rem; font-weight:400; cursor:pointer; box-shadow:var(--pw-shadow-sm); transition:transform .06s var(--pw-ease), background-color .12s var(--pw-ease), border-color .12s var(--pw-ease); }
.kkey:hover{ background:var(--pw-tint); border-color:var(--pw-teal); }
.kkey:active{ transform:scale(.92); background:var(--pw-tint); }
.kdot{ width:13px; height:13px; border-radius:50%; background:var(--pw-line); transition:background-color .2s var(--pw-ease), transform .2s var(--pw-ease); }
.kdot.filled{ background:var(--pw-teal); transform:scale(1.12); }

/* ---- Trust strip (attached, not floating) ---- */
.kx-trust{ width:100%; max-width:760px; display:grid; grid-template-columns:repeat(4,1fr); gap:0; margin-top:1.1rem; background:#fff; border:1px solid var(--pw-line); border-radius:16px; overflow:hidden; box-shadow:var(--pw-shadow-sm); }
.kx-trust-cell{ padding:11px 14px; border-left:1px solid var(--pw-line); }
.kx-trust-cell:first-child{ border-left:none; }
.kx-trust-cell b{ display:block; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color:var(--pw-ink-2); margin-bottom:4px; }
.kx-trust-cell span{ font-size:.82rem; color:var(--pw-muted); }

/* ---- Animated success check (Verified state) ---- */
.kcheck{ width:84px; height:84px; margin:0 auto; border-radius:50%; background:#ecfdf5; display:flex; align-items:center; justify-content:center; box-shadow:0 0 0 8px rgba(16,185,129,.08); }
.kcheck svg path{ stroke-dasharray:32; stroke-dashoffset:32; animation:kx-draw .5s .15s var(--pw-ease) forwards; }
@keyframes kx-draw{ to{ stroke-dashoffset:0; } }

@media (max-width:720px){
    .kx-topbar{ grid-template-columns:1fr auto; padding:12px 16px; }
    .kx-topmid{ display:none; }
    .kx-trust{ grid-template-columns:repeat(2,1fr); }
    .kx-trust-cell:nth-child(3){ border-left:none; }
    .kx-trust-cell:nth-child(n+3){ border-top:1px solid var(--pw-line); }
}


/* Product tag beside the wordmark on the identify screen */
.kiosk-tag{
    display:inline-block;
    vertical-align:top;
    margin:6px 0 0 10px;
    padding:3px 10px 4px;
    border-radius:999px;
    background:var(--pw-tint);
    color:var(--pw-teal-700);
    font-size:13px;
    font-weight:700;
    letter-spacing:.04em;
}
