* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-container {
            width: 100%;
            max-width: 400px;
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 40px;
        }

        .login-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .login-header h1 {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
        }

        .login-header p {
            font-size: 14px;
            color: #666;
        }

        .alert {
            padding: 12px 16px;
            margin-bottom: 24px;
            border-radius: 4px;
            background-color: #fee;
            border: 1px solid #fcc;
            color: #c33;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 500;
            color: #333;
        }

        input[type="text"],
        input[type="password"] {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border-color 0.2s;
        }

        input[type="text"]:focus,
        input[type="password"]:focus {
            outline: none;
            border-color: #333;
        }

        .btn-login {
            width: 100%;
            padding: 12px 16px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .btn-login:hover {
            background-color: #000;
        }

        .footer-text {
            text-align: center;
            margin-top: 24px;
            font-size: 12px;
            color: #999;
        }

/* 비밀번호 변경 모달 스타일 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-header p {
    margin: 10px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.modal-body .form-group {
    margin-bottom: 15px;
}

.modal-body label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.modal-body input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-body input:focus {
    outline: none;
    border-color: #4e73df;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.btn-submit {
    background: #4e73df;
    color: white;
}

.btn-submit:hover {
    background: #3d5fc4;
}

.btn-submit:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.modal-alert {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.modal-alert.error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.modal-alert.success {
    background: #efe;
    color: #060;
    border: 1px solid #cfc;
}

.modal-alert.info {
    background: #e8f4fc;
    color: #0066cc;
    border: 1px solid #b3d7f0;
}

.password-requirements {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}
/* 패스키 로그인 (2026-11-05) — 비밀 창구가 켜져 있을 때만 보임 (passkey.js) */
.pk-wait { display: none; }
.btn-passkey { background: #1f2937; margin-bottom: 4px; }
.btn-passkey:hover { background: #111827; }
.pk-error { color: #dc2626; font-size: 0.85rem; margin: 8px 0; display: none; }
.pk-or { text-align: center; color: #9ca3af; font-size: 0.85rem; margin: 14px 0 6px; }
/* 핸드폰으로 PC 로그인 승인 (11/5 · 승인 화면은 재고관리) · 비번 끄면 📱 만 */
.pk-second { background: #4b5563; margin-top: 8px; }
body.pw-off .pw-part, body.pw-off .pk-second { display: none; }
.pl-box { display: none; margin: 10px 0; padding: 14px; border: 1px solid #e5e7eb; border-radius: 10px; text-align: center; }
.pl-qr { display: flex; justify-content: center; min-height: 200px; }
.pl-num { margin-top: 10px; font-size: 2.2em; font-weight: 700; letter-spacing: 4px; color: #111827; }
.pl-state { margin-top: 6px; font-size: 0.88em; color: #4b5563; }
.pl-again { background: #6b7280; margin-top: 10px; }
