/* ============================================================
   GateGuard — Guard Interface Styles
   File: /assets/css/guard.css
   C Sky Solutions, Jaunpur
   Design principle: large touch targets, high contrast,
   minimal text, icon-first — built for a guard who may not
   read confidently (Master Reference Guide Section 1.4).
   ============================================================ */

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

html, body {
    height: 100%;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0F2647;
    color: #fff;
    overscroll-behavior: none;
}

.guard-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.guard-logo {
    text-align: center;
    margin-bottom: 28px;
}

.guard-logo h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.guard-logo p {
    font-size: 15px;
    opacity: 0.75;
    margin-top: 4px;
}

.guard-card {
    background: #fff;
    color: #222;
    border-radius: 20px;
    padding: 28px 22px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.guard-label {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.guard-mobile-input {
    width: 100%;
    padding: 16px;
    font-size: 22px;
    text-align: center;
    letter-spacing: 2px;
    border: 2px solid #ccc;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 20px;
}

.guard-mobile-input:focus {
    outline: none;
    border-color: #1A3C6E;
}

/* PIN dot display */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.pin-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #1A3C6E;
    background: #fff;
    transition: background 0.15s;
}

.pin-dot.filled {
    background: #1A3C6E;
}

/* Number pad */
.keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.keypad button {
    padding: 20px 0;
    font-size: 26px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    background: #eef2f8;
    color: #1A3C6E;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.keypad button:active {
    background: #d7e2f2;
    transform: scale(0.96);
}

.keypad button.keypad-clear {
    background: #fdecea;
    color: #b3261e;
    font-size: 16px;
}

.keypad button.keypad-back {
    background: #fff4e0;
    color: #b3720c;
    font-size: 20px;
}

.guard-login-btn {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    background: #1A3C6E;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
}

.guard-login-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.guard-error {
    background: #fdecea;
    color: #b3261e;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
    text-align: center;
}

.guard-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    opacity: 0.6;
}

/* Language toggle (EN | HI) — solid background so it stays readable
   on both dark pages (login, dashboard) and light pages (checkin, checkout, expected). */
.lang-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 8px;
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: #1A3C6E;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.25);
}

.lang-btn.active {
    background: #4EA1FF;
    border-color: #4EA1FF;
}

/* Large icon buttons — used on guard dashboard (Week 2, next step) */
.big-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1A3C6E;
    border: none;
    border-radius: 20px;
    padding: 28px 20px;
    font-size: 18px;
    font-weight: 800;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    cursor: pointer;
}

.big-button svg { width: 48px; height: 48px; }
