.wf-pos-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wf-pos-login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 360px;
    width: 100%;
    text-align: center;
}

.wf-pos-login-header {
    margin-bottom: 24px;
}

.wf-pos-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 16px;
    margin-bottom: 12px;
}

.wf-pos-login-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
}

.wf-pos-login-subtitle {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

/* PIN Display */
.wf-pos-login-pin-display {
    position: relative;
    margin-bottom: 20px;
}

.wf-pos-pin-input {
    width: 100%;
    padding: 16px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 12px;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

.wf-pos-pin-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.wf-pos-pin-placeholder {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: opacity 0.2s;
}

.wf-pos-pin-input:not(:placeholder-shown) ~ .wf-pos-pin-placeholder,
.wf-pos-pin-input:focus ~ .wf-pos-pin-placeholder {
    opacity: 0;
}

/* Numpad */
.wf-pos-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 280px;
    margin: 0 auto;
}

.wf-numpad-key {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    font-size: 24px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: #f1f5f9;
    color: #1e293b;
    transition: background 0.1s, transform 0.1s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.wf-numpad-key:hover {
    background: #e2e8f0;
}

.wf-numpad-key:active {
    background: #cbd5e1;
    transform: scale(0.95);
}

.wf-numpad-empty {
    visibility: hidden;
}

.wf-numpad-del {
    background: #fef2f2;
    color: #ef4444;
}

.wf-numpad-del:hover {
    background: #fee2e2;
}

.wf-numpad-del:active {
    background: #fecaca;
}

/* Error */
.wf-pos-login-error {
    background: #fef2f2;
    color: #b91c1c;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    border: 1px solid #fecaca;
}

/* Logged in state */
.wf-pos-logged-in {
    text-align: center;
    padding: 32px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
}

.wf-pos-logged-in p {
    margin: 0 0 12px;
    font-size: 16px;
    color: #166534;
}

.wf-pos-logout-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.wf-pos-logout-btn:hover {
    background: #b91c1c;
    color: #fff;
}

/* Dark mode */
body.wp-admin .wf-pos-login-card {
    background: #1e293b;
}

body.wp-admin .wf-pos-login-header h2 {
    color: #f1f5f9;
}

body.wp-admin .wf-pos-pin-input {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

body.wp-admin .wf-numpad-key {
    background: #334155;
    color: #f1f5f9;
}

body.wp-admin .wf-numpad-key:hover {
    background: #475569;
}

body.wp-admin .wf-numpad-key:active {
    background: #64748b;
}

/* Responsive */
@media (max-width: 480px) {
    .wf-pos-login-card {
        padding: 24px 16px;
    }
    .wf-numpad-key {
        height: 52px;
        font-size: 20px;
    }
}
